blinda
Posts: 3
Joined: Mon Apr 12, 2021 2:52 pm

Spline Chart re-renders multiple times

Hello all! I was wondering if anyone had experience an issue where the Spline chart re-renders multiple times. The only weird thing is that this only occurs for users who have not signed in for 24 hrs.
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: Spline Chart re-renders multiple times

Hello, thanks for contacting us with your question. Could you share the demo, where the issue is reproduced? It is hard to say what is wrong without taking a look into your code and chart configuration. Kind regards,
Paweł Lysy
Highcharts Developer
blinda
Posts: 3
Joined: Mon Apr 12, 2021 2:52 pm

Re: Spline Chart re-renders multiple times

Hi Pawe, here's a screen recording of what's going on. It essentially happens whenever an action is being dispatched

https://drive.google.com/file/d/1DV_MYT ... sp=sharing
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: Spline Chart re-renders multiple times

hi! As I said previously if you don't share the code, where the issue is reproduced it is nearly impossible for us to find the solution. But what it seems, is that you are updating the chart every time, when the state change. What could solve the issue, is that you can try to stop the rerenders when the chart configuration didn't change, or just disable animations of the chart.

Since you are using react, here is the basic demo! https://stackblitz.com/edit/react-nwseym?file=index.js
Kind regards,
Paweł Lysy
Highcharts Developer

Return to “Highcharts Usage”