Added init method to all charts

- Added custom colors to pie chart
This commit is contained in:
Andrés Santibáñez
2021-02-12 00:17:11 -05:00
parent 372d6ffcb0
commit 171a333044
11 changed files with 63 additions and 12 deletions

View File

@@ -3,6 +3,12 @@ const multiLineChart = () => {
return {
chart: null,
init() {
setTimeout(() => {
this.drawChart(this.$wire)
}, 0)
},
drawChart(component) {
if (this.chart) {
this.chart.destroy()