0๐
I think making same call in componentDidUpdate should work but be aware it will trigger stackoverflow so you should add condition to stop setState.
- Chartjs-Subset stacked bars chart
- Chartjs-Converting ChartJSCore to Highcharts.net โ issue with dynamic series data in a loop
Source:stackexchange.com