JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.highcharts.com/highcharts.src.js"></script>
<script src="https://code.highcharts.com/highcharts-more.src.js"></script>

<div id='chart' style="width: 800px; height: 500px;"></div>
<button id="change">Change data</button>

JavaScript

let highchartsChartOptions = {
  "chart": {  "type": "gauge", "renderTo": "chart" },
  "series": [{ "data": [247600] }],
  "yAxis": {
    "plotBands": [{
    	id: "band1",
      "from": 156700,
      "to": 277150,
      "color": "#ff0000",
    }, {
    	id: "band2",
      "from": 277150,
      "to": 386100,
      "color": "#00ff00"
    }],
    "min": 100000,
    "max": 400000
  },
  "pane": {
    "background": null,
    "startAngle": -90,
    "endAngle": 90
  }
};



let seriesData = [
  [226800],
  [247600]
];


let seriesBands = [
  [{
  	id: "band1",
    "from": 156700,
    "to": 277150,
    "color": "#ff0000",
  }, {
	  id: "band2",
    "from": 277150,
    "to": 386100,
    "color": "#00ff00"
  }],
  [{
  	id: "band1",
    from: 100000,
    to: 250000,
    "color": "#ff0000"
  }, {
  	id: "band2",
    from: 250000,
    to: 400000,
    "thickness": 15,
  }]
];

const replacePlotBand = (axis, id, replacement) => {
  axis.removePlotBand(id);
  axis.addPlotBand(replacement);
};

let chart = new Highcharts.Chart(highchartsChartOptions);

let flip = true;
$("#change").on("click", () => {
  chart.series[0].setData(seriesData[flip ? 0 : 1]);
  chart.xAxis[0].removePlotBand('band1');
  chart.xAxis[0].removePlotBand('band2');
  chart.xAxis[0].addPlotBand(seriesBands[flip ? 0 : 1][0]);
  chart.xAxis[0].addPlotBand(seriesBands[flip ? 0 : 1][1]);  
  chart.redraw(true);
  flip = !flip;
});