Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • in reply to: Draggable chart and accessing endpoints #30924

    Hi Shashi, thank you for providing an updated information on the rounding. I’ve been able to implement it but am still having trouble with the limit. As described before: I’m unable to redrag the bar after it passes a certain mark e.g. 1000.

    Could you take a look again to see what changes need to be made or if there’s a known limitation to the draggable chart past a certain yValue?

    Thanks!

    in reply to: Draggable chart and accessing endpoints #30832

    Thanks Shashi for writing and showing that new function getNearestValue.

    My expected behavior is to move in intervals of 100, and in the range of 100 – 60,000. But the current behavior moves in 10 up to 100, then 20 up 200, then 100 up to 1000, then 1000 up to 10000. So it’s not a fixed interval of 100 throughout. I’m also unable to redrag the bar after it passes a certain mark e.g. 1000.

    Could you take a look again to see what changes need to be made or if there’s a known limitation to the draggable chart past a certain yvalue?

    Thanks!
    Kyle

    in reply to: Draggable chart and accessing endpoints #30807

    Thanks Shashi and team, I’ve been able to modify and make changes based on your suggestions. They’re very helpful.

    I did run into an issue with the draggable chart. Is there a limit to the value for draggable points? In the previous examples I had set it to y-min to be -100, but my use case actually has a range of minimum of up to -57,000, and want to make increments on 100 instead of 1. See the updated JSFiddle where I’m having trouble making the chart draggable.

    Thanks in advance, and apologies if these are silly questions.

    in reply to: Draggable chart and accessing endpoints #30643

    Thanks Shashi for clarifying, so looks like I just needed to duplicate the jquery function for each chart1 + 2 to utilize the mouseup/mousedown interactions.

    $(“#chartContainer2 > .canvasjs-chart-container”).on({

    Do you have any suggestions on how to making the endpoints of the dragged elements into a global variable that I can use in a separate calculation? For example, I drag chart1.dataPoint y to 10, and use that 10 to calculate a balance (say fn(10)) that is displayed in a different canvasJS chart.

    Thanks,

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