diff --git a/src/components/chart/state-history-chart-timeline.ts b/src/components/chart/state-history-chart-timeline.ts index 546e062d29..fd2dea5e0a 100644 --- a/src/components/chart/state-history-chart-timeline.ts +++ b/src/components/chart/state-history-chart-timeline.ts @@ -143,7 +143,10 @@ export class StateHistoryChartTimeline extends LitElement { } }, afterUpdate: (y) => { - if (this._yWidth !== Math.floor(y.width)) { + if ( + this._yWidth !== Math.floor(y.width) && + y.ticks.length === this.data.length + ) { this._yWidth = Math.floor(y.width); fireEvent(this, "y-width-changed", { value: this._yWidth,