# Power chart perspective legend

**URL:** <https://forum.inductiveautomation.com/t/power-chart-perspective-legend/61470>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [July 4, 2022, 2:26am UTC](https://forum.inductiveautomation.com/t/power-chart-perspective-legend/61470 "2022-07-04T02:26:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hayden](https://avatars.discourse-cdn.com/v4/letter/h/91b2a8/32.png) [@hayden](https://forum.inductiveautomation.com/u/hayden)\
**Post date:** [July 4, 2022, 2:26am UTC](https://forum.inductiveautomation.com/t/power-chart-perspective-legend/61470/1 "2022-07-04T02:26:55Z")

</div>

I’m using the power chart to display most of our trends, I’ve set up the pens that I want fixed based on the trend page they’re on, e.g. shows flows on the “flow trend” etc. I would like the bottom pen display panel to appear, but I don’t want the operator to be able to modify the trends as they’re only for reference.

I see an option on the trend for a legend, but this doesn’t appear to do anything. Is there a way to stop the user editing this pen display panel or actually show a legend. I’d rather not have to create my own container with my own legend if I can get it made on the object.

---

<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:** [July 4, 2022, 10:34pm UTC](https://forum.inductiveautomation.com/t/power-chart-perspective-legend/61470/2 "2022-07-04T22:34:12Z")

</div>

I don’t recall the option, but its definitely there. In runtime, there’s a button to minimise the tag pens table at the bottom which actually shows the legend instead. There should also be options to disallow showing that table again.  
All a bit vague for now sorry… If someone else hasn’t replied by the time I get to my laptop, I’ll clarify

---

<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 4, 2022, 10:47pm UTC](https://forum.inductiveautomation.com/t/power-chart-perspective-legend/61470/3 "2022-07-04T22:47:12Z")

</div>

See if [Power chart pen control](https://forum.inductiveautomation.com/t/power-chart-pen-control/60932) is of any help to you. The author was trying to hide the pens button. You might be able to use the same technique to hide the edit buttons.

---

<div class="post-metadata">

**Author:** ![hayden](https://avatars.discourse-cdn.com/v4/letter/h/91b2a8/32.png) [@hayden](https://forum.inductiveautomation.com/u/hayden)\
**Post date:** [July 5, 2022, 1:50am UTC](https://forum.inductiveautomation.com/t/power-chart-perspective-legend/61470/5 "2022-07-05T01:50:07Z")

</div>

I was able to get it working, I created two styles, hidePowerChartEdit and hidePowerChartDelete

I put the script into hidePowerChartEdit

```auto
}.psc-hidePowerChartEdit .ia_powerChartComponent __penDataDisplay__ table__icon.edit-pen-icon { display: none !important; }{

```

and put this script into hidePowerChartDelete

```auto
}.psc-hidePowerChartEdit .ia_powerChartComponent __penDataDisplay__ table__icon.delete-pen-icon { display: none !important; }{

```

With this done, if I set the powerchart class to be hidePowerChartEdit, the edit and delete button no longer appears, but I still can hide the pens and see all of the other data we want from the pen control table.

This is the first I’ve used the CSS injection, so this should be a useful tool in future, though I’ll need to check it all still works with future upgrades.

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [July 5, 2022, 10:46am UTC](https://forum.inductiveautomation.com/t/power-chart-perspective-legend/61470/6 "2022-07-05T10:46:45Z")

</div>

> [@hayden](#):
>
> though I’ll need to check it all still works with future upgrades

i dont think they will change it any time soon, but yeah you can also do it with theme.css but its annoying its not possible in the designer
