# Power Chart - hide/remove the delete option for pen

**URL:** <https://forum.inductiveautomation.com/t/power-chart-hide-remove-the-delete-option-for-pen/96174>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 19, 2024, 9:29am UTC](https://forum.inductiveautomation.com/t/power-chart-hide-remove-the-delete-option-for-pen/96174 "2024-09-19T09:29:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sundeep\_Patpatia](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Sundeep\_Patpatia](https://forum.inductiveautomation.com/u/Sundeep_Patpatia)\
**Post date:** [September 19, 2024, 9:29am UTC](https://forum.inductiveautomation.com/t/power-chart-hide-remove-the-delete-option-for-pen/96174/1 "2024-09-19T09:29:00Z")

</div>

![Power_chart](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/2/422a623fb011d837374e1a52cd69c8fbe520f6f6.jpeg)

How can i remove the option for the user to delete pens? I want to use the power chart for the user to look at pre-defined trends(tags) , be able to select which one to view but not to delete them. Doing so seems to remove it forever from the chart and then one need to add it again . So in run mode i want no option of deleting the pens i have set up

---

<div class="post-metadata">

**Author:** ![Benjamin\_Furlani](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/benjamin_furlani/32/66084_2.png) [@Benjamin\_Furlani](https://forum.inductiveautomation.com/u/Benjamin_Furlani)\
**Post date:** [September 19, 2024, 3:08pm UTC](https://forum.inductiveautomation.com/t/power-chart-hide-remove-the-delete-option-for-pen/96174/2 "2024-09-19T15:08:55Z")

</div>

You can either implement you're own selector and a custom chart using Tag History Queries and Bindings, or you can edit the styles of those to remove them from view.

```CSS
.delete-pen-icon,.edit-pen-icon {
	visibility:collapse;
}
#ia_powerChartComponent __chartOptionBar__ popupMenu __menuItem__ delete,#ia_powerChartComponent __chartOptionBar__ popupMenu __menuItem__ edit {
	visibility:collapse;
}

```

The classes are for the icons on the row, the Id overrides are for the popup menu when you have a certain screen width that pops up for the power chart.

---

<div class="post-metadata">

**Author:** ![Matthew\_Gall](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@Matthew\_Gall](https://forum.inductiveautomation.com/u/Matthew_Gall)\
**Post date:** [September 19, 2024, 10:16pm UTC](https://forum.inductiveautomation.com/t/power-chart-hide-remove-the-delete-option-for-pen/96174/3 "2024-09-19T22:16:19Z")

</div>

I've found the Time Series Chart to be better option for predefined trends, I'd suggest using that if you don't need users to edit pens.

---

<div class="post-metadata">

**Author:** ![Sundeep\_Patpatia](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Sundeep\_Patpatia](https://forum.inductiveautomation.com/u/Sundeep_Patpatia)\
**Post date:** [September 23, 2024, 7:58am UTC](https://forum.inductiveautomation.com/t/power-chart-hide-remove-the-delete-option-for-pen/96174/4 "2024-09-23T07:58:30Z")

</div>

That is a good lead. Are then thinking of using the Sparkline Display? Doesn't it only show one tag at the time? I need have the option to show 1+++ tags. If this is not the case please do guide me to where to start looking to make in the way you have described.

I am trying to look at the last suggestion you mentioned. I am not so well known is the removing things by scripting so if you have a start guide where to look at of doing this would also by helpful.

---

<div class="post-metadata">

**Author:** ![Sundeep\_Patpatia](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Sundeep\_Patpatia](https://forum.inductiveautomation.com/u/Sundeep_Patpatia)\
**Post date:** [September 23, 2024, 7:59am UTC](https://forum.inductiveautomation.com/t/power-chart-hide-remove-the-delete-option-for-pen/96174/5 "2024-09-23T07:59:56Z")

</div>

I will check that one out:) thanks, didn't think of that one. I am guesting i can do the same thing as mentioned here and also look at live data as well?

---

<div class="post-metadata">

**Author:** ![zaheemsheik](https://avatars.discourse-cdn.com/v4/letter/z/3bc359/32.png) [@zaheemsheik](https://forum.inductiveautomation.com/u/zaheemsheik)\
**Post date:** [July 4, 2025, 10:33am UTC](https://forum.inductiveautomation.com/t/power-chart-hide-remove-the-delete-option-for-pen/96174/6 "2025-07-04T10:33:45Z")

</div>

try using this in stylesheet.css

```python

svg.ia_powerChartComponent __penDataDisplay__ table__icon.delete-pen-icon {
    visibility: hidden;
}

```
