# XY Plot in 7.8/7.9

**URL:** <https://forum.inductiveautomation.com/t/xy-plot-in-7-8-7-9/15649>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [October 12, 2017, 7:19am UTC](https://forum.inductiveautomation.com/t/xy-plot-in-7-8-7-9/15649 "2017-10-12T07:19:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jalpanchal](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@jalpanchal](https://forum.inductiveautomation.com/u/jalpanchal)\
**Post date:** [October 12, 2017, 7:19am UTC](https://forum.inductiveautomation.com/t/xy-plot-in-7-8-7-9/15649/1 "2017-10-12T07:19:53Z")

</div>

Hi,

I am interested in creating XY Plots. I have 2 Historically bound tags ( X and Y) and I would Like to plot X vs Y. I checked the Inductive University Videos called "XY Charts’ under Report Charts ([https://www.inductiveuniversity.com/video/xy-chart?r=/course/reporting-in-ignition](https://www.inductiveuniversity.com/video/xy-chart?r=/course/reporting-in-ignition)), but it looks like the Ignition version used in the Video is old.

In V7.9.4, I tried using Chart object, but couldn’t find a way to assign a “Domain Key” for the X axis. I tried a few things but wasn’t able to create a XY plot where X and Y are 2 historically bound tags.

Could you please guide me in making a XY Plot in Ignition 7.9.4

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [October 12, 2017, 10:46am UTC](https://forum.inductiveautomation.com/t/xy-plot-in-7-8-7-9/15649/2 "2017-10-12T10:46:27Z")

</div>

The video you linked to is within the reporting module, not a vision component.  
In the chart component, you need to set up an X-axis that is Numeric (that default X-Axis is Date).

Here is a video I just uploaded. Sorry, no audio, no time… You know how it is. 🙂 But it should help you point in the right direction. I modified the demo data by eliminating the date column to make the data more “scatter-y”

---

<div class="post-metadata">

**Author:** ![jal.panchal](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@jal.panchal](https://forum.inductiveautomation.com/u/jal.panchal)\
**Post date:** [October 13, 2017, 5:32am UTC](https://forum.inductiveautomation.com/t/xy-plot-in-7-8-7-9/15649/3 "2017-10-13T05:32:29Z")

</div>

Oh yes, my Bad. Actually I hadn’t explored the Reporting Module, so I didn’t realize that it wasn’t the Vision module, I just thought it might be an older version of Vision as it looked different.

I have actually tried the method you mentioned before, it doesn’t work if the Dataset is got from a Tag History binding. Due to the binding, I am not able to delete the t\_stamp column. If I delete it, it just comes back due to the binding to the Tag History.

I have a crude solution, which “works” but I am not happy with it. What I do is Add a Table to the page and get the two tags ( X and Y) into to using Tag History binding. Then in the Chart I write an Expression for the Data "columnRerrange( “tableDatasetpath”, “X”, “Y”) to eliminate the t\_stamp column. This is cumbersome, I was hoping for a neater solution.

---

<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 13, 2017, 12:31pm UTC](https://forum.inductiveautomation.com/t/xy-plot-in-7-8-7-9/15649/4 "2017-10-13T12:31:14Z")

</div>

You don’t have to add a whole table. Just a custom dataset property to receive the tag history. You might want to take a look at the `view()` function in my [Simulation Aids module](https://inductiveautomation.com/moduleshowcase/module/automation-professionals-llc-simulation-aids) (free!). It lets you “reprocess” any dataset into another dataset using pseudo-SQL syntax.
