fmcg
Posts: 4
Joined: Wed May 19, 2021 9:18 am

How to make Highcharts React redraw without changing data?

Hi there!

I need highcharts to adapt its width to the parent's width. So if we change the parent's width without changing the data, the chart should resize.
But since the data is the same, it doesn't happen.

It seems to work if we resize the browser's screen, but that's not what we need.

Here's a link to a "not working" example: https://stackblitz.com/edit/react-xhcmx4?file=index.js

Thanks in advance!
fmcg
Posts: 4
Joined: Wed May 19, 2021 9:18 am

Re: How to make Highcharts React redraw without changing data?

Got the answer on Stackoverflow in case someone's interested: https://stackoverflow.com/questions/721 ... nging-data
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: How to make Highcharts React redraw without changing data?

Hi fmcg,

Thanks for sharing the answer. In case of any further questions feel free to contact us again.

Regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”