vue-chartjs
Advanced tools
Comparing version
{ | ||
"name": "vue-chartjs", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Vue wrapper for chart.js", | ||
@@ -5,0 +5,0 @@ "author": "Jakub Juszczak <jakub@nextindex.de>", |
# Vue-ChartJs | ||
[] (https://badge.fury.io/js/vue-chartjs)  | ||
> VueJS wrapper for ChartJs | ||
@@ -4,0 +6,0 @@ |
@@ -48,3 +48,3 @@ import Vue from 'vue' | ||
render (data, options = this.options) { | ||
const chart = new Chart( | ||
this._chart = new Chart( | ||
this.$els.canvas.getContext('2d'), { | ||
@@ -56,5 +56,8 @@ type: 'bar', | ||
) | ||
chart.generateLegend() | ||
this._chart.generateLegend() | ||
} | ||
}, | ||
beforeDestroy () { | ||
this._chart.destroy() | ||
} | ||
}) |
@@ -31,3 +31,3 @@ import Vue from 'vue' | ||
render (data, options = this.options) { | ||
const chart = new Chart( | ||
this._chart = new Chart( | ||
this.$els.canvas.getContext('2d'), { | ||
@@ -39,5 +39,8 @@ type: 'doughnut', | ||
) | ||
chart.generateLegend() | ||
this._chart.generateLegend() | ||
} | ||
}, | ||
beforeDestroy () { | ||
this._chart.destroy() | ||
} | ||
}) |
@@ -46,3 +46,3 @@ import Vue from 'vue' | ||
render (data, options = this.options) { | ||
const chart = new Chart( | ||
this._chart = new Chart( | ||
this.$els.canvas.getContext('2d'), { | ||
@@ -54,5 +54,8 @@ type: 'line', | ||
) | ||
chart.generateLegend() | ||
this._chart.generateLegend() | ||
} | ||
}, | ||
beforeDestroy () { | ||
this._chart.destroy() | ||
} | ||
}) |
@@ -31,3 +31,3 @@ import Vue from 'vue' | ||
render (data, options = this.options) { | ||
const chart = new Chart( | ||
this._chart = new Chart( | ||
this.$els.canvas.getContext('2d'), { | ||
@@ -39,5 +39,8 @@ type: 'pie', | ||
) | ||
chart.generateLegend() | ||
this._chart.generateLegend() | ||
} | ||
}, | ||
beforeDestroy () { | ||
this._chart.destroy() | ||
} | ||
}) |
@@ -31,3 +31,3 @@ import Vue from 'vue' | ||
render (data, options = this.options) { | ||
const chart = new Chart( | ||
this._chart = new Chart( | ||
this.$els.canvas.getContext('2d'), { | ||
@@ -39,5 +39,8 @@ type: 'polarArea', | ||
) | ||
chart.generateLegend() | ||
this._chart.generateLegend() | ||
} | ||
}, | ||
beforeDestroy () { | ||
this._chart.destroy() | ||
} | ||
}) |
@@ -31,3 +31,3 @@ import Vue from 'vue' | ||
render (data, options = this.options) { | ||
const chart = new Chart( | ||
this._chart = new Chart( | ||
this.$els.canvas.getContext('2d'), { | ||
@@ -39,5 +39,8 @@ type: 'radar', | ||
) | ||
chart.generateLegend() | ||
this._chart.generateLegend() | ||
} | ||
}, | ||
beforeDestroy () { | ||
this._chart.destroy() | ||
} | ||
}) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3893739
0.07%50
2.04%2623
0.77%145
1.4%