# Power Chart Scripting Data Source issues

**URL:** <https://forum.inductiveautomation.com/t/power-chart-scripting-data-source-issues/66592>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [November 16, 2022, 4:48pm UTC](https://forum.inductiveautomation.com/t/power-chart-scripting-data-source-issues/66592 "2022-11-16T16:48:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![elijah.roberts](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@elijah.roberts](https://forum.inductiveautomation.com/u/elijah.roberts)\
**Post date:** [November 16, 2022, 4:48pm UTC](https://forum.inductiveautomation.com/t/power-chart-scripting-data-source-issues/66592/1 "2022-11-16T16:48:53Z")

</div>

Hello, I am trying to build a power chart with a dropdown included. I have several sets of sensors for different ranges of gas. I have several UDT instances with parameters in them. I understand how to get the chart to look at the dropdown but how would I incorporate the UDT params?

Example: Sensor 1 and 2 param is 250, Sensor 3 and 4 is 500. I want to select the 250 sensors in my dropdown and have the chart populate with sensors 1 and 2 level tags.

Thank you for any help!

---

<div class="post-metadata">

**Author:** ![IgnitionNewbie](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IgnitionNewbie](https://forum.inductiveautomation.com/u/IgnitionNewbie)\
**Post date:** [November 20, 2022, 2:01am UTC](https://forum.inductiveautomation.com/t/power-chart-scripting-data-source-issues/66592/2 "2022-11-20T02:01:12Z")

</div>

Would playing with the visibility parameters work??

You could have all the sensors on the chart but make the dropdown toggle the PenVisibility parameter between on or off on the powerchart to turn on whichever sensor pens you want it to look at

---

<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:** [November 20, 2022, 8:20am UTC](https://forum.inductiveautomation.com/t/power-chart-scripting-data-source-issues/66592/3 "2022-11-20T08:20:02Z")

</div>

You've tagged vision but youre asking about perspective powerchart. Are you asking about Vision or Perspective?

In either case, you'll want to use a binding to set the configured pens to point to the right tags based on your selection

---

<div class="post-metadata">

**Author:** ![elijah.roberts](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@elijah.roberts](https://forum.inductiveautomation.com/u/elijah.roberts)\
**Post date:** [November 20, 2022, 8:39pm UTC](https://forum.inductiveautomation.com/t/power-chart-scripting-data-source-issues/66592/4 "2022-11-20T20:39:37Z")

</div>

Nick, I apologize, it's in perspective. Thank you for your help though!

---

<div class="post-metadata">

**Author:** ![elijah.roberts](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@elijah.roberts](https://forum.inductiveautomation.com/u/elijah.roberts)\
**Post date:** [November 20, 2022, 8:40pm UTC](https://forum.inductiveautomation.com/t/power-chart-scripting-data-source-issues/66592/5 "2022-11-20T20:40:11Z")

</div>

Thank you, I'll be sure to try this tomorrow!

---

<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:** [November 20, 2022, 11:41pm UTC](https://forum.inductiveautomation.com/t/power-chart-scripting-data-source-issues/66592/6 "2022-11-20T23:41:27Z")

</div>

No worries.

I wouldn't use visibility. It's wasteful and inefficient to create config for every single combination of tags that you want to display as well as then the number of bindings to the visible property. It's far better to create pens for the tags of one instance, and then bind those pen data sources to the UDT you've selected.

i.e. bind to the source below  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/a/ba279c7463086f914cf3a856116b8128391ba550.png)
