From 277202e363d6371ee149cac03b716afa080cecab Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Fri, 31 Jan 2025 11:46:01 +0100 Subject: [PATCH] Use smooth line for statistic line chart (#23984) * Use smooth line for statistic line chart * Use same smooth options as chartjs --- src/components/chart/statistics-chart.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/chart/statistics-chart.ts b/src/components/chart/statistics-chart.ts index 0225818253..409af35617 100644 --- a/src/components/chart/statistics-chart.ts +++ b/src/components/chart/statistics-chart.ts @@ -432,6 +432,8 @@ export class StatisticsChart extends LitElement { const series: LineSeriesOption | BarSeriesOption = { id: `${statistic_id}-${type}`, type: this.chartType, + smooth: this.chartType === "line" ? 0.4 : false, + smoothMonotone: "x", cursor: "default", data: [], name: name