From 84527ff809814825796521d4b1facfefd4786ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Santib=C3=A1=C3=B1ez?= Date: Fri, 12 Feb 2021 00:26:04 -0500 Subject: [PATCH] Added color customization to multiline chart --- resources/js/multiLineChart.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/js/multiLineChart.js b/resources/js/multiLineChart.js index dddc54f..eb376f6 100644 --- a/resources/js/multiLineChart.js +++ b/resources/js/multiLineChart.js @@ -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(); }