# Select pens to trend

**URL:** <https://forum.inductiveautomation.com/t/select-pens-to-trend/64248>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [September 19, 2022, 7:51pm UTC](https://forum.inductiveautomation.com/t/select-pens-to-trend/64248 "2022-09-19T19:51:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cole.sharrah](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@cole.sharrah](https://forum.inductiveautomation.com/u/cole.sharrah)\
**Post date:** [September 19, 2022, 7:51pm UTC](https://forum.inductiveautomation.com/t/select-pens-to-trend/64248/1 "2022-09-19T19:51:24Z")

</div>

I am interested in using check boxes to select which values on the screen I want to trend and then click a button to open a trend with those values.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/f/cfcf964e0280fb1821676d813704fb6f8b109dd2.png)

How can I make this work?

---

<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:** [September 19, 2022, 7:52pm UTC](https://forum.inductiveautomation.com/t/select-pens-to-trend/64248/2 "2022-09-19T19:52:50Z")

</div>

That looks like you are working in _Vision_. Can you add the _Vision_ (or _Perspective_) tag to your question to make it clear?

---

<div class="post-metadata">

**Author:** ![cole.sharrah](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@cole.sharrah](https://forum.inductiveautomation.com/u/cole.sharrah)\
**Post date:** [September 19, 2022, 7:54pm UTC](https://forum.inductiveautomation.com/t/select-pens-to-trend/64248/3 "2022-09-19T19:54:14Z")

</div>

Sorry, it is perspective.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/e/ae4c1535c8041f41ebafd431c1c06ef812c263c8.png)

---

<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:** [September 19, 2022, 7:56pm UTC](https://forum.inductiveautomation.com/t/select-pens-to-trend/64248/4 "2022-09-19T19:56:57Z")

</div>

Thanks.  
Which chart component type do you wish to use?

---

<div class="post-metadata">

**Author:** ![cole.sharrah](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@cole.sharrah](https://forum.inductiveautomation.com/u/cole.sharrah)\
**Post date:** [September 19, 2022, 7:59pm UTC](https://forum.inductiveautomation.com/t/select-pens-to-trend/64248/5 "2022-09-19T19:59:03Z")

</div>

Preferably the power chart.

---

<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:** [September 19, 2022, 8:58pm UTC](https://forum.inductiveautomation.com/t/select-pens-to-trend/64248/6 "2022-09-19T20:58:40Z")

</div>

Try this:

- Run the chart in Designer and add the tags/pens that you want.
- If you now examine the `props | pens | 0`, etc., you’ll see there is a `visible` property for each.
- You now need to create a dictionary to pass to the chart. You can use an Expression Structure and bind to to whatever you like on that view. A custom property on the root might suffice.

![Expression structure](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/f/5ff34d5e9332e85c896dca1522c1600dd4552e19.png)

- On the chart view create a view parameter of type _object_ to take the dictionary.
- On the chart open `props | pens | 0 | visible` and add a binding to the view parameter.

![Pen visibility bindng](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/d/7d019ded0447197d193609f78a49394df7f85512.png)

That should be enough to get you going.

---

<div class="post-metadata">

**Author:** ![jiyoung\_hwang1](https://avatars.discourse-cdn.com/v4/letter/j/bc79bd/32.png) [@jiyoung\_hwang1](https://forum.inductiveautomation.com/u/jiyoung_hwang1)\
**Post date:** [April 6, 2023, 8:17am UTC](https://forum.inductiveautomation.com/t/select-pens-to-trend/64248/8 "2023-04-06T08:17:47Z")

</div>

I'm new to ignition, so I want to copy the solution you told me, but it doesn't work.

Can you send me a sample file or let me know in detail?

---

<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:** [April 6, 2023, 5:28pm UTC](https://forum.inductiveautomation.com/t/select-pens-to-trend/64248/9 "2023-04-06T17:28:09Z")

</div>

> [@jiyoung\_hwang1](#):
>
> ... so I want to copy the solution you told me, but it doesn't work.

Please explain

- what you did,
- what you expected,
- and what you got.
