score:1

Accepted answer

You can use setExtremes method in load event:

    chart: {
        events: {
            load: function() {
                const xAxis = this.xAxis[0];
                xAxis.setExtremes(xAxis.dataMin, xAxis.dataMin + xAxis.max - xAxis.min);
            }
        }
    }

Live demo: https://jsfiddle.net/BlackLabel/8tk52zdw/

API Reference: https://api.highcharts.com/class-reference/Highcharts.Axis#setExtremes


Related Articles