Added color customization to multiline chart

This commit is contained in:
Andrés Santibáñez
2021-02-12 00:26:04 -05:00
parent cefb5089e8
commit 84527ff809

View File

@@ -76,6 +76,12 @@ const multiLineChart = () => {
yaxis: component.get('lineChartModel.yAxis') || {},
};
const colors = component.get('lineChartModel.colors');
if (colors && colors.length > 0) {
options['colors'] = colors
}
this.chart = new ApexCharts(this.$refs.container, options);
this.chart.render();
}