Home forums Using CanvasJS Controlling Dynamic Charts Reply To: Controlling Dynamic Charts

#14361

Suyash Singh
Moderator

@oneworld,

You can programmatically zoom into an axis range by using ViewPortMinimum and viewPortMaximum. Reset button won’t work since the viewPortMaximum / viewPortMinimum values were not set manually (mouse click and drag). So you will have to take care of zoom out on click of reset button. Please check this jsfiddle.

__
Suyash,
Team CanvasJS