Chartjs-ChartJs functional component does not refresh even when forceUpdate

1👍

When adding new data to the chart, or in your case when the initial data is ready, you will have to call the update methode on the chart itself. So instead of only calling new Chart you will have to put it into a variable and call .update() on it when the data changes

Leave a comment