Home › forums › Using CanvasJS › display current value of line chart datapoint on y axis
Tagged: line chart datapoint y axis
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.
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.
Hi Manoh thanks for the help. the fiddle works fine when using Y axis as primary. but fails when it is secondary.
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.
You must be logged in to reply to this topic.