2👍
This will not work. Because the reactiveMixins assume that chartData
is the whole chartjs dataset object. With the dataset array, with the labels etc.
But you are splitting it up, this way the reactiveMixins can’t work.
Because your chartData is only the pure data of one dataset.
To solve it, you can do two things:
- Pass in the whole dataset object
- Add own watchers.
I guess the most simple method would be to add two watchers to watch chartData
and chartLabel
and on a change call this.$data._chart.update()
Source:stackexchange.com