zoomType allows you to control the axis for which zooming and panning are enabled. Default is “x” which enables zooming across xAxis. You can customize this to allow zooming/panning on yAxis or both xAxis and yAxis by setting zoomType to “y” or “xy”.
Options: “x”, “y”, “xy”
- This property works only when zoomEnabled is set to true.
- Applies only for Chart types which have Axis.
var chart = new CanvasJS.Chart("container",