diff --git a/src/components/chart/ha-chart-base.ts b/src/components/chart/ha-chart-base.ts index 60d0d039f8d5..47f4ac470544 100644 --- a/src/components/chart/ha-chart-base.ts +++ b/src/components/chart/ha-chart-base.ts @@ -60,6 +60,7 @@ export class HaChartBase extends LitElement { public connectedCallback() { super.connectedCallback(); if (this.hasUpdated) { + this._releaseCanvas(); this._setupChart(); } } @@ -110,7 +111,7 @@ export class HaChartBase extends LitElement { return; } if (changedProps.has("plugins") || changedProps.has("chartType")) { - this.chart.destroy(); + this._releaseCanvas(); this._setupChart(); return; }