Home Forums Chart Support Slider Y-axis

Slider Y-axis

Viewing 2 posts - 1 through 2 (of 2 total)
  • #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 3 years, 11 months ago by anurag.
    • This topic was modified 3 years, 11 months ago by anurag.
    • This topic was modified 3 years, 11 months 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.