Home › forums › Using CanvasJS › How can I create a horizontal bar to change display of data
This topic contains 4 replies, has 2 voices, and was last updated by murilo.wattsense 5 hours, 59 minutes ago.
How could I add a horizontal bar to change the view of the data, just like in Amazon CloudWatch graph?
Please take a look at this JSFiddle to add jQuery Slider on Axis X with static data.
Thanks for the answer!
That’s interesting… so if I want to play with the zoom-in/out of the graph using a slider, basically is the viewport property from the X axis?
Yes, you can use viewportMinimum and viewportMaximum on Axis X to zoom/pan chart programmatically.
Ok! Good to know!!
Thanks for the help!!
You must be logged in to reply to this topic.