Home Forums Report Bugs Reset not working when chart is rendered already zoomed-in Reply To: Reset not working when chart is rendered already zoomed-in

#22704

@leandrocosta,

viewportMinimum and viewportMaximum are used to programmatically zoom to a region. In this scenario, if you try to reset the range by clicking reset button it will fallback to the range that you have set (viewportMinimum and viewportMaximum). Removing viewportMinimum and viewportMaximum should work fine in this case. Or if you are trying to zoom to a certain region on initial render and like to reset on clicking reset button, you can use rangeChanged event as shown in this updated JSFiddle.


Vishwas R
Team CanvasJS