Home forums Using CanvasJS display current value of line chart datapoint on y axis

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #25952

    Hi All, is it possible to display the current value of the datapoint in line chart on y axis. this would avoid playing the cursor on the linger chart to see the current value.

    #25957

    @rajupradeep,

    You can display y-value of the datapoint in indexlabel. However if you like to show it over axisY, you can use striplines to do so. Please take a look at this JSFiddle.


    Manoj Mohan
    Team CanvasJS

    #25961

    Hi Manoh thanks for the help. the fiddle works fine when using Y axis as primary. but fails when it is secondary.

    data: [
    {
    type: “line”,
    axisYType: “secondary”,

    #25987

    @rajupradeep,

    When the axisYType is set to secondary, adding striplines to secondary Y-axis (axisY2) should work fine. Please take a look at this updated JSFiddle. Also refer documentation for more customization options available.


    Manoj Mohan
    Team CanvasJS

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

You must be logged in to reply to this topic.