You must be logged in to post your query.
Home › Forums › Chart Support › 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.
@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
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”,
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. Login/Register