Auto-zooming a chart with a value axis on both X and Y

If the chart has a ValueAxis as both of its axes, it would not auto-zoom vertically when panned/zoomed. It's by design. This demo shows how to implement this functionality.

See the Pen auto-zooming chart when both axes are value axes by amCharts team (@amcharts) on CodePen.