Home forums Using CanvasJS How to secondary draggable line-chart?

This topic contains 2 replies, has 2 voices, and was last updated by  KUmemura 1 year, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #21902

    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.




    You must change dataSeries index on your functions.

    line 152:
    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");

    line 172:
    chart.data[0].set("cursor", "default");

    line 187:
    var dps = chart.data[0].dataPoints;

    I tried something with using data mouseover events. Maybe you can improve this method.



    Hi @sonerb

    Thank you for the reply.
    I’ll try this one.


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

You must be logged in to reply to this topic.