# 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:** 1\
**Showing post:** 2

<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

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/power-chart-coloured-x-trace-pen-tag-names/114712)._
