score:1

Accepted answer

you need to update max property:

chart.xaxis[0].update({
    categories: categories,
    max: categories.length - 1
}, false);

live demo: https://jsfiddle.net/blacklabel/zkqult0y/

api reference: https://api.highcharts.com/highcharts/xaxis.max


Related Query

More Query from same tag