# Bug Report :: XYChart labels with dark-mode not working

**URL:** <https://forum.inductiveautomation.com/t/bug-report-xychart-labels-with-dark-mode-not-working/37822>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 17, 2020, 7:10pm UTC](https://forum.inductiveautomation.com/t/bug-report-xychart-labels-with-dark-mode-not-working/37822 "2020-08-17T19:10:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![beaudoin.stephane](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@beaudoin.stephane](https://forum.inductiveautomation.com/u/beaudoin.stephane)\
**Post date:** [August 17, 2020, 7:10pm UTC](https://forum.inductiveautomation.com/t/bug-report-xychart-labels-with-dark-mode-not-working/37822/1 "2020-08-17T19:10:33Z")

</div>

Hi, I am trying to use the CSS generic variable colors var(–neutral-60) to convert my themes from light-cool to dark and the label appears to be black in all themes.

yaxes[0]appearance.labels.color

Thanks

Stephane

---

<div class="post-metadata">

**Author:** ![maja](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@maja](https://forum.inductiveautomation.com/u/maja)\
**Post date:** [August 18, 2020, 11:00am UTC](https://forum.inductiveautomation.com/t/bug-report-xychart-labels-with-dark-mode-not-working/37822/2 "2020-08-18T11:00:06Z")

</div>

I have a similar problem, I insert CSS variable for series column color but everything is dark (image is attached --charts-4). Looks like XYChart doesn’t accept it.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/8/58b73bda0af9f558736dd1d5155772ced7fe9b3f.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/0/e001e6b16f8d870b39009894069ff9776826bce6.png)  
Can somebody help?

Thanks, Maja!

---

<div class="post-metadata">

**Author:** ![beaudoin.stephane](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@beaudoin.stephane](https://forum.inductiveautomation.com/u/beaudoin.stephane)\
**Post date:** [August 18, 2020, 12:14pm UTC](https://forum.inductiveautomation.com/t/bug-report-xychart-labels-with-dark-mode-not-working/37822/3 "2020-08-18T12:14:08Z")

</div>

Hi Maja, please try this: var(–charts-4)

---

<div class="post-metadata">

**Author:** ![maja](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@maja](https://forum.inductiveautomation.com/u/maja)\
**Post date:** [August 18, 2020, 12:59pm UTC](https://forum.inductiveautomation.com/t/bug-report-xychart-labels-with-dark-mode-not-working/37822/4 "2020-08-18T12:59:09Z")

</div>

I tried it. Doesn’t work ☹

---

<div class="post-metadata">

**Author:** ![Vidya\_G\_S](https://avatars.discourse-cdn.com/v4/letter/v/b2d939/32.png) [@Vidya\_G\_S](https://forum.inductiveautomation.com/u/Vidya_G_S)\
**Post date:** [July 20, 2024, 6:39am UTC](https://forum.inductiveautomation.com/t/bug-report-xychart-labels-with-dark-mode-not-working/37822/5 "2024-07-20T06:39:06Z")

</div>

Hi , I am using XY chart, the labels in x axis appear in black in all themes, please give solution

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 20, 2024, 11:23am UTC](https://forum.inductiveautomation.com/t/bug-report-xychart-labels-with-dark-mode-not-working/37822/6 "2024-07-20T11:23:35Z")

</div>

See here:

> [@Perspective Css-Theme-Variable not working on all Controls](https://forum.inductiveautomation.com/t/perspective-css-theme-variable-not-working-on-all-controls/66629/2):
>
> This is a problem with the chart components in general. They are bought in or adapted from AM Charts, for example, and may have SVG components that don't reference the CSS. We allow users to select a theme on all our projects - usually just the built-in themes. My workaround for the charts has been to set up a session.custom.config section and add the necessary colors there that mimic the CSS theme colors. [Session custom theme] I used the ColorZilla plugin for Google Chrome to read/pick the …

---

<div class="post-metadata">

**Author:** ![Robert\_McIlvenna](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert_mcilvenna/32/80238_2.png) [@Robert\_McIlvenna](https://forum.inductiveautomation.com/u/Robert_McIlvenna)\
**Post date:** [February 10, 2026, 6:18pm UTC](https://forum.inductiveautomation.com/t/bug-report-xychart-labels-with-dark-mode-not-working/37822/7 "2026-02-10T18:18:19Z")

</div>

Ran into this issue again, the above solution works, but for dynamic charts where the bullets cant be manually bound this unfortunately doesnt work when the user changes the theme
