ankita.sharma
Posts: 7
Joined: Sat Jun 19, 2021 8:29 pm

Chart.reflow() not working for me.

Hi Can anyone help me with this. I recently have update highcharts version from 9th to 11 everything was almost working fine except one thing that is reflow().

My requirement is my dashboards are resizable so once any div gets resized charts are not getting resized.. reflow is not working. is i m using resize chart is getting adjusted but legends and chart title are not changing as per the responsive array.
jakub.s
Site Moderator
Posts: 1496
Joined: Fri Dec 16, 2022 11:45 am

Re: Chart.reflow() not working for me.

Hi,

Thanks for the question!

I've tested the reflow option out and it seems to be working as expected.

Please try to create a minimal reproducible example so that I could investigate this issue further. You could start from this demo that I've prepared: https://jsfiddle.net/7svub4fr/ (which correctly re-renders the chart after setSize).

Best regards!
Jakub
Highcharts Developer
ankita.sharma
Posts: 7
Joined: Sat Jun 19, 2021 8:29 pm

Re: Chart.reflow() not working for me.

@jakub.s Thank you so much i misunderstood the usage i guess., i was just using setSize or reflow separately. when i used both it worked :)
jakub.s
Site Moderator
Posts: 1496
Joined: Fri Dec 16, 2022 11:45 am

Re: Chart.reflow() not working for me.

Great, I'm happy that it works now :)

Please do not hesitate to ask in case you have any more questions about this.

Best regards!
Jakub
Highcharts Developer

Return to “Highcharts Usage”