Added init method to all charts
- Added custom colors to pie chart
This commit is contained in:
@@ -3,6 +3,12 @@ const multiLineChart = () => {
|
||||
return {
|
||||
chart: null,
|
||||
|
||||
init() {
|
||||
setTimeout(() => {
|
||||
this.drawChart(this.$wire)
|
||||
}, 0)
|
||||
},
|
||||
|
||||
drawChart(component) {
|
||||
if (this.chart) {
|
||||
this.chart.destroy()
|
||||
|
||||
Reference in New Issue
Block a user