# Perspective Time Series Chart - Enable/Disable Pens

**URL:** <https://forum.inductiveautomation.com/t/perspective-time-series-chart-enable-disable-pens/34327>\
**Category:** Ignition\
**Created:** [April 30, 2020, 1:51pm UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-enable-disable-pens/34327 "2020-04-30T13:51:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![downerczx](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/downerczx/32/11649_2.png) [@downerczx](https://forum.inductiveautomation.com/u/downerczx)\
**Post date:** [April 30, 2020, 1:51pm UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-enable-disable-pens/34327/1 "2020-04-30T13:51:50Z")

</div>

I have a time series chart with 13 pre configured pens. I would like to be able to enable/disable them based on the actual number at the specific site (up to 13). While I see a “visible” property under trends-\>0-\>visible, it doesn’t actually remove the pen from the legend, though it does from the chart. I would like to have a parameter for the view called “numPens” where I can just say 1-13 and it disable all those \> numPens. Does anyone know of a way to disable the legend entry as well as the visibility of the pen?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/59a74bbe5a5d9ee85323e3940dec9cd15563f0f0.png)

---

<div class="post-metadata">

**Author:** ![jball](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jball/32/11128_2.png) [@jball](https://forum.inductiveautomation.com/u/jball)\
**Post date:** [April 30, 2020, 2:58pm UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-enable-disable-pens/34327/2 "2020-04-30T14:58:14Z")

</div>

@downerczx, no easy way to “disbale” a pen, unfortunately. You would need to remove that pen from the data feeding the Time Series chart to remove it from the legend.

I am working on an Easy Chart that will take time series data. Among other things, that enable/disable behavior will be part of this component. Still under development, but this will be a great component for this use case in the future.

---

<div class="post-metadata">

**Author:** ![downerczx](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/downerczx/32/11649_2.png) [@downerczx](https://forum.inductiveautomation.com/u/downerczx)\
**Post date:** [May 1, 2020, 1:56pm UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-enable-disable-pens/34327/3 "2020-05-01T13:56:03Z")

</div>

Thanks for the help. It sounds like that will be a great component.
