From 228860a1ee268e0d1c11810159382345388c64d9 Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Thu, 29 May 2025 11:05:26 +0300 Subject: [PATCH] Use theme variables for network graph labels (#25634) --- 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 2ecad752a3..37a12f07e6 100644 --- a/src/components/chart/ha-chart-base.ts +++ b/src/components/chart/ha-chart-base.ts @@ -494,6 +494,13 @@ export class HaChartBase extends LitElement { smooth: false, }, bar: { itemStyle: { barBorderWidth: 1.5 } }, + graph: { + label: { + color: style.getPropertyValue("--primary-text-color"), + textBorderColor: style.getPropertyValue("--primary-background-color"), + textBorderWidth: 2, + }, + }, categoryAxis: { axisLine: { show: false }, axisTick: { show: false },