score:1

Accepted answer

That problem is more related with internal spacing calculations, to prevent taking into account stock tools add this small plugin:

(function(H) {
    H.wrap(H.Chart.prototype, 'getMargins', function(proceed) {
        var storedStockTools = this.stockTools;
        // don't consider stock tools in get margins
        this.stockTools = null;

        proceed.apply(this, Array.prototype.slice.call(arguments, 1));
        // restore stock tools
        this.stockTools = storedStockTools;
    });
}(Highcharts));

Live demo: https://jsfiddle.net/BlackLabel/aer80c1b/

Docs: https://www.highcharts.com/docs/extending-highcharts/extending-highcharts


Related Query

More Query from same tag