Accepted answer

I have two aproach, the first with changing inside event chart.redraw() will be called every time when chart is redrawn, for testing I added fired from a button.

  redraw: function() {
    let chart = this;
    chart.xAxis[0].userMax = 8;
    chart.xAxis[0].userMin = 2;

The next way is to update the axis object with a new set of userMax and userMin options.

    userMax: 8,
    userMin: 2
  }, true);

Live demo:

API References:

Related Query

More Query from same tag