1👍
The first component you posted refers to this.chartData()
, however there is no chartData
property on that component. You can force an update by create a ref
, then accessing this.$refs.<yourref>.update()
within your update handler.
- Chartjs-ChartJS – line graph, position tooltip
- Chartjs-(Lifecycle problem?) React Chart js-2 not updating data from componentDidMount
Source:stackexchange.com