From 4fa1b60cb1a9aebedd35430e7f914153f73ef9f5 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Fri, 31 Jan 2025 09:54:16 +0100 Subject: [PATCH] Only use opacity for bar graph --- src/components/chart/statistics-chart.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/chart/statistics-chart.ts b/src/components/chart/statistics-chart.ts index 614b2bce4a..cfbcc06ae7 100644 --- a/src/components/chart/statistics-chart.ts +++ b/src/components/chart/statistics-chart.ts @@ -455,7 +455,11 @@ export class StatisticsChart extends LitElement { borderWidth: 1.5, } : undefined, - color: band ? color + "3F" : color + "7F", + color: band + ? color + "3F" + : this.chartType === "bar" + ? color + "7F" + : color, }; if (band && this.chartType === "line") { series.stack = `band-${statistic_id}`;