diff --git a/src/components/chart/Chart.vue b/src/components/chart/Chart.vue index cd44081a8..d99796c9c 100755 --- a/src/components/chart/Chart.vue +++ b/src/components/chart/Chart.vue @@ -32,8 +32,16 @@ export default { } }, watch: { - data() { - this.reinit(); + /* + * Use deep watch to enable triggering watch for changes within structure + * otherwise the entire data object needs to be replaced to trigger watch + */ + data: { + handler(val, oldVal) { + console.log('watch data') + this.reinit(); + }, + deep: true }, type() { this.reinit();