score:2

Accepted answer

The chart.zoom function is available (but not intended for this use), but normally takes quite a few parameters from a drag-event. Faking it upon chart creation could at minimum be done like this:

$('#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 do a manual selection I've logged the original input that function would take.


Related Query

More Query from same tag