Home forums Using CanvasJS Text box on Charts

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20433

    Ryan
    Member

    Hi all,

    Is there a way I could insert a text box inside a chart.
    I tried to use legend but can not place it at a specific location.
    Please see link attached.

    canvasjs

    #20434

    Vishwas R
    Keymaster

    Ryan,

    You can position custom DOM wherever you want on the chart with the help of convertValueToPixel and convertPixelToValue methods. Please take a look at this jsfiddle where many custom texts are positioned as indexLabels.


    Vishwas R
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.