ChartJS resets on data update

Hey @jagai ! That’s a problem that can happen. We already have plans to expose the Chart.js instance so that native functions can be called if needed.

Meanwhile, you can reset the chart by re-rendering it. You can do this by binding conditional rendering to a variable we’ll call ‘isRendered’ for this example. When there’s a change in your data and you want to force an update, set this variable to false, then set it back immediately to true.

2 Likes