# Using Historical data in Templates

**URL:** <https://forum.inductiveautomation.com/t/using-historical-data-in-templates/8629>\
**Category:** Ignition\
**Created:** [June 26, 2014, 8:16pm UTC](https://forum.inductiveautomation.com/t/using-historical-data-in-templates/8629 "2014-06-26T20:16:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjanowiak](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jjanowiak](https://forum.inductiveautomation.com/u/jjanowiak)\
**Post date:** [June 26, 2014, 8:16pm UTC](https://forum.inductiveautomation.com/t/using-historical-data-in-templates/8629/1 "2014-06-26T20:16:43Z")

</div>

Is it possible to add chart objects (like a sparkline chart) to a template?

I can drop the chart object into the template but I don’t see how to bind the chart dataset to a historical tag/property of the template if that makes sense.

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![adamaustin](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@adamaustin](https://forum.inductiveautomation.com/u/adamaustin)\
**Post date:** [June 26, 2014, 11:08pm UTC](https://forum.inductiveautomation.com/t/using-historical-data-in-templates/8629/2 "2014-06-26T23:08:23Z")

</div>

Try using [indirect tag binding](http://www.inductiveautomation.com/news/item/178/1) along with the CELL UPDATE binding for the Tag Pens.

In the Property Editor panel, find the TAG PENS (under CHART CONFIGURATION) and click the BINDING icon.  
Click CELL UPDATE and use something like this:  
ROW=0 -\> VALUE = {Template.Param1}/fanSpeed  
ROW=1 -\> VALUE = {Template.Param1}/hoa

… OR just watch [this youtube video](https://www.youtube.com/watch?v=NxVKA3fNsnM). 😐

---

<div class="post-metadata">

**Author:** ![jjanowiak](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jjanowiak](https://forum.inductiveautomation.com/u/jjanowiak)\
**Post date:** [June 27, 2014, 4:36am UTC](https://forum.inductiveautomation.com/t/using-historical-data-in-templates/8629/3 "2014-06-27T04:36:01Z")

</div>

Thank you very much. These YouTube videos helped a lot. A little hard to follow with no audio but very helpful indeed.
