Open Dadibom opened 3 years ago
I have the same error. A chart isn't updated after data changing
I am facing the same issue
Solved this issue by calling this.state.chartObj.destroy()
when chart data is updated.
My error was just that the chart was always one state behind the data fetched from an API. Using just the watch
as @vikdiesel worked flawlessly! I don't have the same error as the OP, though.
Please fix this issue
If you change the data, the chart will automatically update. But if you then drag your mouse across the chart, the chart will show different old versions of the data.