From 172d6c30791d6dc84b306d90f9e2fa2b479d343a Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Wed, 5 Feb 2025 17:04:03 +0200 Subject: [PATCH] Disable chart update animation (#24084) --- src/components/chart/state-history-chart-line.ts | 1 + src/components/chart/statistics-chart.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/chart/state-history-chart-line.ts b/src/components/chart/state-history-chart-line.ts index 60006950ac..d268bd5d7c 100644 --- a/src/components/chart/state-history-chart-line.ts +++ b/src/components/chart/state-history-chart-line.ts @@ -379,6 +379,7 @@ export class StateHistoryChartLine extends LitElement { color, symbol: "circle", step: "end", + animationDurationUpdate: 0, symbolSize: 1, lineStyle: { width: fill ? 0 : 1.5, diff --git a/src/components/chart/statistics-chart.ts b/src/components/chart/statistics-chart.ts index 46c6d7477e..ac9aabf85e 100644 --- a/src/components/chart/statistics-chart.ts +++ b/src/components/chart/statistics-chart.ts @@ -308,7 +308,7 @@ export class StatisticsChart extends LitElement { }, grid: { ...(this.hideLegend ? { top: this.unit ? 30 : 5 } : {}), // undefined is the same as 0 - left: 5, + left: 1, right: 1, bottom: 0, containLabel: true, @@ -494,6 +494,7 @@ export class StatisticsChart extends LitElement { ), symbol: "circle", symbolSize: 0, + animationDurationUpdate: 0, lineStyle: { width: 1.5, },