The chart.zoom function is available (but not intended for this use), but usually takes quite a few parameters from the drag event. Faking it when creating a chart can be performed at least:
$('#container').highcharts({ // ... }, function() { this.zoom({ xAxis: [{ min: 25, max: 30, axis: this.xAxis[0] }], yAxis: [{ min: 0, max: 300, axis: this.yAxis[0] }] }); });
See this CodePen for an example. If you make a manual selection, I registered the original input that will perform the function.
source share