# Classic VA Plot

**URL:** <https://forum.inductiveautomation.com/t/classic-va-plot/4821>\
**Category:** Ignition\
**Created:** [July 16, 2012, 12:23pm UTC](https://forum.inductiveautomation.com/t/classic-va-plot/4821 "2012-07-16T12:23:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gadgetguru69](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gadgetguru69](https://forum.inductiveautomation.com/u/gadgetguru69)\
**Post date:** [July 16, 2012, 12:23pm UTC](https://forum.inductiveautomation.com/t/classic-va-plot/4821/1 "2012-07-16T12:23:25Z")

</div>

Well i am trying to setup a classic VA plot with the chart control. I have dataset using historical tag with the below settings. I then assigned this dataset to the chart and setup the two axis to numeric. but i am getting now values in the chart. Am i missing something?

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/8460e65dfb9eff19d0883cd518832b9a5e770b81.PNG)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/96b5168dc2518accd7533f1f441f2d05b94fea60.PNG)

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [July 16, 2012, 2:23pm UTC](https://forum.inductiveautomation.com/t/classic-va-plot/4821/2 "2012-07-16T14:23:00Z")

</div>

Can you post a screenshot of the actual dataset? My guess is the quality of the data is bad or there is no data.

---

<div class="post-metadata">

**Author:** ![gadgetguru69](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gadgetguru69](https://forum.inductiveautomation.com/u/gadgetguru69)\
**Post date:** [July 16, 2012, 2:52pm UTC](https://forum.inductiveautomation.com/t/classic-va-plot/4821/3 "2012-07-16T14:52:14Z")

</div>

Dataset is fine. When running the chart as a time base chart it works fine. Also if you copy the data out of dataset into a new dataset and delete the t\_stamp column i get the results i would expect. But if you delete the t\_stamp column from the dataset linked to the tag history it flases with the correct data but then the t\_stamp column gets added back into the dataset.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/efc2550778ed3cb22bd03d4fbcf3fa6d6aed139b.PNG)

---

<div class="post-metadata">

**Author:** ![gadgetguru69](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gadgetguru69](https://forum.inductiveautomation.com/u/gadgetguru69)\
**Post date:** [July 17, 2012, 3:06pm UTC](https://forum.inductiveautomation.com/t/classic-va-plot/4821/4 "2012-07-17T15:06:29Z")

</div>

Travis i was just going to see if you had any ideas on what is going on here or if i need to go about this in a different manner.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [July 17, 2012, 3:35pm UTC](https://forum.inductiveautomation.com/t/classic-va-plot/4821/5 "2012-07-17T15:35:22Z")

</div>

Correct, the tag history binding always adds the t\_stamp as the first column. I see what you are trying to do. In this case you have to make a new dataset in scripting since you can’t remove the t\_stamp column. Do the following:

1. Add a custom property to the root container called origData that is a dataset. Right click and select Customizers \> Custom Properties.
2. Bind it to the tag history binding you have right now
3. Right click on the root container and select Event Handlers…
4. Choose the propertyChange event and use code like this:`if event.propertyName == "origData":
 origData = system.dataset.toPyDataSet(event.newValue)
 newData = []
 for row in origData:
     newData.append([row[1], row[2]])
 event.source.getComponent("Chart").Data = system.dataset.toDataSet(["Col 1 Name", "Col 2 Name"], newData)`Let us know if you have any questions.
