# Template Easy Charts

**URL:** <https://forum.inductiveautomation.com/t/template-easy-charts/77061>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [July 28, 2023, 12:57pm UTC](https://forum.inductiveautomation.com/t/template-easy-charts/77061 "2023-07-28T12:57:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![billy\_hanner](https://avatars.discourse-cdn.com/v4/letter/b/258eb7/32.png) [@billy\_hanner](https://forum.inductiveautomation.com/u/billy_hanner)\
**Post date:** [July 28, 2023, 12:57pm UTC](https://forum.inductiveautomation.com/t/template-easy-charts/77061/1 "2023-07-28T12:57:27Z")

</div>

Hi,

Has anyone had any luck using an easy chart as part of a template, we are developing a system with a process that requires a chart and the only part we haven't managed to make dynamic so far is the chart. specifically the tag history pens.

Has anyone had any luck making this work?

Thanks in advance

---

<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:** [July 28, 2023, 1:02pm UTC](https://forum.inductiveautomation.com/t/template-easy-charts/77061/2 "2023-07-28T13:02:10Z")

</div>

You probably need to dynamically create (or bind) the `tagPens` dataset property. This is fairly common for chart popups. Should work for templates, too.

---

<div class="post-metadata">

**Author:** ![billy\_hanner](https://avatars.discourse-cdn.com/v4/letter/b/258eb7/32.png) [@billy\_hanner](https://forum.inductiveautomation.com/u/billy_hanner)\
**Post date:** [July 28, 2023, 1:05pm UTC](https://forum.inductiveautomation.com/t/template-easy-charts/77061/3 "2023-07-28T13:05:32Z")

</div>

I did see you can do and I've done it for various other bits e.g. alarm configuration. But I can't find an easy way to create a dataset in a UDT where i can dynamically update the dataset cells e.g. if i want to add a new pen to all the charts i only have to change one UDT and all the instances will have the new history pen etc

---

<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:** [July 28, 2023, 1:08pm UTC](https://forum.inductiveautomation.com/t/template-easy-charts/77061/4 "2023-07-28T13:08:01Z")

</div>

Blegh. No, don't try to maintain the dataset in the UDT. It has to have instance-specific content, so needs to be generated. As a UI behavior, I would just keep this config in the template.

See this topic for some ideas:

> [@Pass tag history path to easy chart popup](https://forum.inductiveautomation.com/t/pass-tag-history-path-to-easy-chart-popup/53684):
>
> Good morning, in the pages of my project I have some process variables (usually float number) and all of them are historicized into the database. I would like to know if should be possible to create a “standard” easy chart popup where, if I click on the process variable, I open the easy chart popup and I pass the history tag path of that specific process variable. All the other settings of the trend will be always the same (colors, axes ecc). I guess I could make it adding a custom property wh…

---

<div class="post-metadata">

**Author:** ![billy\_hanner](https://avatars.discourse-cdn.com/v4/letter/b/258eb7/32.png) [@billy\_hanner](https://forum.inductiveautomation.com/u/billy_hanner)\
**Post date:** [July 28, 2023, 2:16pm UTC](https://forum.inductiveautomation.com/t/template-easy-charts/77061/5 "2023-07-28T14:16:30Z")

</div>

That's worked brilliantly thanks for that
