You must be logged in to post your query.
Home › Forums › Chart Support › How to secondary draggable line-chart?
Hi CanvasJS Support Forum,
I want to be able to drag a secondary line-chart. The main line-chart was made to be able to drag.
jsFiddle
Thanks,
You must change dataSeries index on your functions.
line 152: chart.data[0].dataPoints[selected].y = yValue;
chart.data[0].dataPoints[selected].y = yValue;
line 163: chart.data[0].dataPoints[selected].y = yValue;
line 170: chart.data[0].set("cursor", "n-resize");
chart.data[0].set("cursor", "n-resize");
line 172: chart.data[0].set("cursor", "default");
chart.data[0].set("cursor", "default");
line 187: var dps = chart.data[0].dataPoints;
var dps = chart.data[0].dataPoints;
I tried something with using data mouseover events. Maybe you can improve this method.
http://jsfiddle.net/y3xvo7uc
Hi @sonerb
Thank you for the reply. I’ll try this one.
Thanks.
You must be logged in to reply to this topic. Login/Register