# Dynamic tag binding in EasyCharts

**URL:** <https://forum.inductiveautomation.com/t/dynamic-tag-binding-in-easycharts/96844>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [October 4, 2024, 7:19pm UTC](https://forum.inductiveautomation.com/t/dynamic-tag-binding-in-easycharts/96844 "2024-10-04T19:19:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Lino](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@Jose\_Lino](https://forum.inductiveautomation.com/u/Jose_Lino)\
**Post date:** [October 4, 2024, 7:19pm UTC](https://forum.inductiveautomation.com/t/dynamic-tag-binding-in-easycharts/96844/1 "2024-10-04T19:19:10Z")

</div>

Hello! I've been using Ignition for a few weeks, and I am still learning. I have an HMI with a main window that contains sensors (UDT). When you click on each sensor, a popup opens displaying the sensor's information, such status, alarms, etc.

The sensors get their data from a database, and I want to configure the sensors to record history using the database. At the same time, I want to include a dynamic EasyChart in the popup that displays the sensor's value. For example, if I click on sensor 1, the popup will show the historical data of that sensor.

I created transaction groups, but I can't add all sensors in one transaction group, so I created one transaction group for each sensor, the problem is that I can't do it dynamically.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 4, 2024, 7:45pm UTC](https://forum.inductiveautomation.com/t/dynamic-tag-binding-in-easycharts/96844/2 "2024-10-04T19:45:09Z")

</div>

This is probably a job for the Tag Historian, so all the database operations are standardized. Vision's EasyChart `tagPens` are relatively easy to configure (with a cell update binding) to display tag history for a dynamically chosen pen.

---

<div class="post-metadata">

**Author:** ![Jose\_Lino](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@Jose\_Lino](https://forum.inductiveautomation.com/u/Jose_Lino)\
**Post date:** [October 4, 2024, 8:24pm UTC](https://forum.inductiveautomation.com/t/dynamic-tag-binding-in-easycharts/96844/3 "2024-10-04T20:24:11Z")

</div>

I tried binding the Tag Pens in the chart configuration, but when I bind a tag history to it, I have the error:

ignition Error getting component property Easy Chart.tagPens Message: Column 'name' doesn't exist in this dataset.

I don't have a lot of knowledge on datasets. Do I create a column on the dataset? And how?

Thanks for the help btw!!!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 5, 2024, 12:17am UTC](https://forum.inductiveautomation.com/t/dynamic-tag-binding-in-easycharts/96844/4 "2024-10-05T00:17:35Z")

</div>

The simplest path would be to define **one** historian pen on the EasyChart the usual way. Name, color, units, whatever. Then, use a cell binding to change the tag path of that pen on the fly. (Cell bindings cannot create rows or columns in datasets, only update specific cells.)

---

<div class="post-metadata">

**Author:** ![Jose\_Lino](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@Jose\_Lino](https://forum.inductiveautomation.com/u/Jose_Lino)\
**Post date:** [October 7, 2024, 2:37pm UTC](https://forum.inductiveautomation.com/t/dynamic-tag-binding-in-easycharts/96844/5 "2024-10-07T14:37:11Z")

</div>

It worked! Thanks
