diff --git a/src/components/chart/ha-chart-base.ts b/src/components/chart/ha-chart-base.ts index aa4a90fef8d6..1bcfa3871f5f 100644 --- a/src/components/chart/ha-chart-base.ts +++ b/src/components/chart/ha-chart-base.ts @@ -211,9 +211,9 @@ export class HaChartBase extends LitElement { height: `${ this.height ?? this._chartHeight ?? this.clientWidth / 2 }px`, - "padding-left": `${this._paddingYAxisInternal}`, + "padding-left": `${this._paddingYAxisInternal}px`, "padding-right": 0, - "padding-inline-start": `${this._paddingYAxisInternal}`, + "padding-inline-start": `${this._paddingYAxisInternal}px`, "padding-inline-end": 0, })} >