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 Query

More Query from same tag