Closed trash closed 3 months ago
Hi @trash! After the second update of the chart you didn't see any changes, because you have to overwrite the old value, which is set on the chart, you can simply set softMax or max to void 0
/undefined
.
Live demo: https://codesandbox.io/p/sandbox/highcharts-react-demo-forked-3l4g9x?file=%2Fdemo.jsx%3A40%2C27
Expected behaviour
Passing in updated yAxis[0].softMax via options to React wrapper Highcharts instance updates the chart.
Actual behaviour
It doesn't update.
Live demo with steps to reproduce
https://codesandbox.io/p/sandbox/highcharts-react-demo-forked-jhsmq4?file=%2Fdemo.jsx%3A30%2C4
You can see the options are being updated by React but for whatever reason Highcharts doesn't re-render the y axis. I also tried calling
.redraw()
on the Highcharts instance and still no dice.Product version
"highcharts": "11.2.0", "highcharts-react-official": "3.2.1",
Affected browser(s)
Chrome