# Power Chart - Coloured X Trace Pen Tag Names

**URL:** <https://forum.inductiveautomation.com/t/power-chart-coloured-x-trace-pen-tag-names/114712>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 27, 2026, 4:43am UTC](https://forum.inductiveautomation.com/t/power-chart-coloured-x-trace-pen-tag-names/114712 "2026-03-27T04:43:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [March 27, 2026, 4:43am UTC](https://forum.inductiveautomation.com/t/power-chart-coloured-x-trace-pen-tag-names/114712/1 "2026-03-27T04:43:27Z")

</div>

Before I go down the JS rabbit hole to do this, has anyone else coloured the x-trace pen names properly to match their pen colour in the chart? (I vaguely remember a topic where someone posted this, but I haven’t been able to find it)

The fact that amCharts is just SVG is a bit depressing. Formatting font in SVGs is more work than should be required for some things

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/5/75e378cf5be2b19eb4f7cc813cfbd9b3198cdd9c.png)

At the moment, it is so hard to read and link the pen names/values to the pens on the chart when they’re un-coloured 😮‍💨

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [March 27, 2026, 6:33am UTC](https://forum.inductiveautomation.com/t/power-chart-coloured-x-trace-pen-tag-names/114712/2 "2026-03-27T06:33:49Z")

</div>

Here’s the Markdown component to set the xtrace tag colours to those in the legend. I don’t know if it works when the legend is “shrunk”…

Just copy and paste into your view.

Also, I don’t know what I’d do without Claude.ai… This is Claude’s first prompt response, well, the script part was

E_dit: moved to here_

> [@JS Injection Hack Usefuls (JavaScript)](https://forum.inductiveautomation.com/t/js-injection-hack-usefuls-javascript/114714/3):
>
> Power Chart - Set X-Trace tag labels to their pen colour This will set the tag labels and values shown in all x-trace panels to the colour of their chart pens. The script (dodgilly?) grabs the colours from the legend key at the bottom. I haven’t tested if this works when the legend is collapsed into the smaller version Instructions Copy and paste into a View with a Power Chart and your operators will no longer become frustrated trying to eyeball x-trace tags with their corresponding …

```python

```
