Only use opacity for bar graph

This commit is contained in:
Paul Bottein 2025-01-31 09:54:16 +01:00
parent 653aeae3d8
commit 4fa1b60cb1
No known key found for this signature in database

View File

@ -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}`;