# Dynamic easy chart "dataset" vs "where clause"

**URL:** <https://forum.inductiveautomation.com/t/dynamic-easy-chart-dataset-vs-where-clause/30588>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [December 10, 2019, 11:45pm UTC](https://forum.inductiveautomation.com/t/dynamic-easy-chart-dataset-vs-where-clause/30588 "2019-12-10T23:45:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [December 11, 2019, 4:11pm UTC](https://forum.inductiveautomation.com/t/dynamic-easy-chart-dataset-vs-where-clause/30588/4 "2019-12-11T16:11:41Z")

</div>

The following is an example for manipulating Tag Historian pens (the `tagPens` dataset instead of the `pens` dataset), but the same operations are used (slightly different set of columns).

> [@EasyChart: Working with Datasets (Python)](http://forum.inductiveautomation.com/t/easychart-working-with-datasets-python/9668):
>
> Objective: To add Tag Pens to Easy Chart through scripting. EasyChart seems to use DataSets to store the Tag Pens that are displayed on the chart. The DataSet includes a number of columns that store the configuration of the Tag being charted (i.e. Name, Tag\_Path, Color…). Question: How do you add a new row through event scripts to this DataSet to add a new Tag Pen to the EasyChart?

---

_[View the full topic](https://forum.inductiveautomation.com/t/dynamic-easy-chart-dataset-vs-where-clause/30588)._
