From f70a1813f4ef7fba80a2e1b70b3c8df7435998c2 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 23 Mar 2021 22:01:53 +0100 Subject: [PATCH] history change chart colors Signed-off-by: Stefan Dej --- src/components/charts/HistoryFilamentUsage.vue | 4 ++-- src/components/charts/HistoryPrinttimeAvg.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/charts/HistoryFilamentUsage.vue b/src/components/charts/HistoryFilamentUsage.vue index df5ce740..099bde0e 100644 --- a/src/components/charts/HistoryFilamentUsage.vue +++ b/src/components/charts/HistoryFilamentUsage.vue @@ -94,7 +94,7 @@ export default { }, } }, - color: ['#000'], + color: ['#BDBDBD'], series: [{ type: 'bar', data: [], @@ -130,7 +130,7 @@ export default { if (this.chart) { const chartOptions = { series: this.chartOptions.series } chartOptions.series[0].data = this.filamentUsageArray - chartOptions.color = [this.getPrimaryColor()] + //chartOptions.color = [this.getPrimaryColor()] this.chart.setOption(chartOptions) this.chart.resize() } diff --git a/src/components/charts/HistoryPrinttimeAvg.vue b/src/components/charts/HistoryPrinttimeAvg.vue index 23d3d9fb..c963814b 100644 --- a/src/components/charts/HistoryPrinttimeAvg.vue +++ b/src/components/charts/HistoryPrinttimeAvg.vue @@ -74,7 +74,7 @@ export default { type: 'bar', data: [], itemStyle: { - color: '#000' + color: '#BDBDBD' } }] }, @@ -107,7 +107,7 @@ export default { if (this.chart) { const chartOptions = { series: this.chartOptions.series } chartOptions.series[0].data = this.printtimeAvgArray - chartOptions.series[0].itemStyle.color = this.getPrimaryColor() + //chartOptions.series[0].itemStyle.color = this.getPrimaryColor() this.chart.setOption(chartOptions) } },