# Chart title not following color of style class

**URL:** <https://forum.inductiveautomation.com/t/chart-title-not-following-color-of-style-class/41510>\
**Category:** Maker\
**Tags:** perspective\
**Created:** [December 14, 2020, 7:51pm UTC](https://forum.inductiveautomation.com/t/chart-title-not-following-color-of-style-class/41510 "2020-12-14T19:51:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sungkhum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sungkhum/32/10636_2.png) [@sungkhum](https://forum.inductiveautomation.com/u/sungkhum)\
**Post date:** [December 14, 2020, 7:51pm UTC](https://forum.inductiveautomation.com/t/chart-title-not-following-color-of-style-class/41510/1 "2020-12-14T19:51:32Z")

</div>

Am I doing something wrong? I can change the font and font size of the chart title with a style class, but it seems to ignore font color…it seems to be following a default color of some kind even though the color property is blank (it still shows that grey color)?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/a/4a3aa412a90bae885142952c0f848e2c46059855.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 14, 2020, 8:10pm UTC](https://forum.inductiveautomation.com/t/chart-title-not-following-color-of-style-class/41510/2 "2020-12-14T20:10:40Z")

</div>

What if you delete the `color` key from the font object entirely? Or, if that starts yelling at you, set it to `inherit`?

---

<div class="post-metadata">

**Author:** ![sungkhum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sungkhum/32/10636_2.png) [@sungkhum](https://forum.inductiveautomation.com/u/sungkhum)\
**Post date:** [December 14, 2020, 9:11pm UTC](https://forum.inductiveautomation.com/t/chart-title-not-following-color-of-style-class/41510/3 "2020-12-14T21:11:26Z")

</div>

I had tried deleting it and that didn’t do anything. Inherit did change it, but to black, not the color specified in the style class… 🤔

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 14, 2020, 9:30pm UTC](https://forum.inductiveautomation.com/t/chart-title-not-following-color-of-style-class/41510/4 "2020-12-14T21:30:46Z")

</div>

Try opening your chart view in the browser, then use the dev tools (Ctrl + Shift + I) to see the inheritance stack and where the gray/black is coming from. It’s possible a global style (something you could override through Perspective theme-ing) is set to a higher precedence than your style class rule.

---

<div class="post-metadata">

**Author:** ![sungkhum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sungkhum/32/10636_2.png) [@sungkhum](https://forum.inductiveautomation.com/u/sungkhum)\
**Post date:** [December 14, 2020, 9:56pm UTC](https://forum.inductiveautomation.com/t/chart-title-not-following-color-of-style-class/41510/5 "2020-12-14T21:56:47Z")

</div>

Ah, good idea. Turns out “fill” is the correct parameter for a chart title, not font color when using a style class (though for inline style font color is what works).

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/2/820dbd0507c48007b6516773ba7e274cd16d507f.png)
