Skip to content

Commit

Permalink
Disable chart update animation (#24084)
Browse files Browse the repository at this point in the history
  • Loading branch information
MindFreeze authored and bramkragten committed Feb 5, 2025
1 parent 56539e8 commit 172d6c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/chart/state-history-chart-line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ export class StateHistoryChartLine extends LitElement {
color,
symbol: "circle",
step: "end",
animationDurationUpdate: 0,
symbolSize: 1,
lineStyle: {
width: fill ? 0 : 1.5,
Expand Down
3 changes: 2 additions & 1 deletion src/components/chart/statistics-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -494,6 +494,7 @@ export class StatisticsChart extends LitElement {
),
symbol: "circle",
symbolSize: 0,
animationDurationUpdate: 0,
lineStyle: {
width: 1.5,
},
Expand Down

0 comments on commit 172d6c3

Please sign in to comment.