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:

  1. pass in the whole dataset object
  2. 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()

Related Query

More Query from same tag