Home forums Using CanvasJS Slider Y-axis

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28949

    Hi,
    My use case is the following:

    I want the user to be able to drag a slider up and down through the Y-axis of a line chart.
    And I want to be able to update some data based on where the slider is. The data that is being updated doesn’t impact the chart.
    Visually, I want the slider to be located at the end opposite to the Y-axis.

    It is something very similar to the chart under How Long Do You Plan to Stay?– here: https://www.nytimes.com/interactive/2014/upshot/buy-rent-calculator.html – except the slider would be on the Y-axis.

    Any help on this would be much appreciated.

    • This topic was modified 2 months, 4 weeks ago by anurag.
    • This topic was modified 2 months, 4 weeks ago by anurag.
    • This topic was modified 2 months, 4 weeks ago by anurag.
    #28978

    @anurag,

    You can set the color of the specific dataPoint according to the value received from slider event handler as shown in this JSFiddle.

    ____________
    Indranil Deo
    Team CanvasJS

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

You must be logged in to reply to this topic.