score:1

Try to use this approach:

  chart: {
    type: 'bar',
    events: {
      render() {
        let chart = this;
        if (chartForRender) {
          chartForRender = false;
          chart.update({
            chart: {
              marginLeft: chart.chartWidth / 2
            }
          })
        }
        chartForRender = true;
      }
    }
  },

Demo: https://jsfiddle.net/BlackLabel/49oxesdh/

API: https://api.highcharts.com/highcharts/chart.events.render


Related Articles