From a5b58c3b98d618df57bfc7d9cb217552b97c235e Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 4 Aug 2017 15:06:22 -0400 Subject: [PATCH] Add support for xLabels and yLabels --- src/mixins/reactiveProp.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/mixins/reactiveProp.js b/src/mixins/reactiveProp.js index c9da8ff..dc779ea 100644 --- a/src/mixins/reactiveProp.js +++ b/src/mixins/reactiveProp.js @@ -47,8 +47,16 @@ module.exports = { } } }) - - chart.data.labels = newData.labels + + if (newData.hasOwnProperty('labels')) { + chart.data.labels = newData.labels + } + if (newData.hasOwnProperty('xLabels')) { + chart.data.xLabels = newData.xLabels + } + if (newData.hasOwnProperty('yLabels')) { + chart.data.yLabels = newData.yLabels + } chart.update() } else { chart.destroy()