Skip to content

Commit cef11e0

Browse files
authored
Apply theme variables to pi charts (#27773)
1 parent 55e75e8 commit cef11e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/chart/ha-chart-base.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,13 @@ export class HaChartBase extends LitElement {
652652
textBorderWidth: 2,
653653
},
654654
},
655+
pie: {
656+
label: {
657+
color: style.getPropertyValue("--primary-text-color"),
658+
textBorderColor: style.getPropertyValue("--primary-background-color"),
659+
textBorderWidth: 2,
660+
},
661+
},
655662
sankey: {
656663
label: {
657664
color: style.getPropertyValue("--primary-text-color"),

0 commit comments

Comments
 (0)