# Static vertical line in xy chart

**URL:** <https://forum.inductiveautomation.com/t/static-vertical-line-in-xy-chart/78231>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [August 22, 2023, 1:52pm UTC](https://forum.inductiveautomation.com/t/static-vertical-line-in-xy-chart/78231 "2023-08-22T13:52:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hw79](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hw79](https://forum.inductiveautomation.com/u/hw79)\
**Post date:** [August 22, 2023, 1:52pm UTC](https://forum.inductiveautomation.com/t/static-vertical-line-in-xy-chart/78231/1 "2023-08-22T13:52:35Z")

</div>

I have an XY chart set up as a histogram and want to add vertical lines to indicate target/min/max. I've found a couple posts with some solutions but they aren't working for me.

I have a second data source with the target/min/max data and confirmed that it's working correctly. series.1.data is set to the 2nd data source but I don't have a y reference since it's a single row of data.  
Can I bind the series.1.data.y to the count from series.0.data.y? How would I do that?

edit: another thought: Would I be better off doing a JOIN on the named query and adding the target/min/max to the first dataset?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [August 22, 2023, 9:32pm UTC](https://forum.inductiveautomation.com/t/static-vertical-line-in-xy-chart/78231/2 "2023-08-22T21:32:19Z")

</div>

Duplicate post:

> [@Xy chart line area but vertically](https://forum.inductiveautomation.com/t/xy-chart-line-area-but-vertically/78258):
>
> I have an XY chart with Target and Minimum lines that I would like to use the area between as good. Following the documentation I have series.1.line.open.x and series.2.open.x set to point toward each other but no area shading appears. Has anyone gotten this to work in a vertical band vs. horizontal? In the example below, I'd like to have the area between the black and red lines shaded. [image]

Please don't do that. Edit your first post to improve it!

---

<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:** [August 22, 2023, 9:58pm UTC](https://forum.inductiveautomation.com/t/static-vertical-line-in-xy-chart/78231/3 "2023-08-22T21:58:34Z")

</div>


