From 95311be0343ee32fb75f398d5532b7d95f3ee0cd Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Mon, 3 Nov 2025 17:27:09 +0200 Subject: [PATCH] Apply theme variables to pi charts (#27773) --- src/components/chart/ha-chart-base.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/chart/ha-chart-base.ts b/src/components/chart/ha-chart-base.ts index 4770646c1e..f4d8f31c93 100644 --- a/src/components/chart/ha-chart-base.ts +++ b/src/components/chart/ha-chart-base.ts @@ -652,6 +652,13 @@ export class HaChartBase extends LitElement { textBorderWidth: 2, }, }, + pie: { + label: { + color: style.getPropertyValue("--primary-text-color"), + textBorderColor: style.getPropertyValue("--primary-background-color"), + textBorderWidth: 2, + }, + }, sankey: { label: { color: style.getPropertyValue("--primary-text-color"),