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
There is nothing about “canvasjs”.
Here is my fiddle, maybe someone want to use.
https://jsfiddle.net/QwZuf/1888/
@vishwas thank you for helping. It’s work for me.
I have an another question, maybe i should open new topic but I want to ask now. Can I get default data color? I can get, if I set color properties and render. But I can’t get like this;
var data_color = chart.options.data[0].color;