# Add Vertical Line To XY Chart

**URL:** <https://forum.inductiveautomation.com/t/add-vertical-line-to-xy-chart/76946>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 26, 2023, 2:03pm UTC](https://forum.inductiveautomation.com/t/add-vertical-line-to-xy-chart/76946 "2023-07-26T14:03:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charles\_Belanger](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@Charles\_Belanger](https://forum.inductiveautomation.com/u/Charles_Belanger)\
**Post date:** [July 26, 2023, 2:03pm UTC](https://forum.inductiveautomation.com/t/add-vertical-line-to-xy-chart/76946/1 "2023-07-26T14:03:40Z")

</div>

I would like to put vertical Line on a particular value inside a Xy Chart.  
Presentely my chart look like this :

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/6/467223dd3face2315f32904ae974ee4f17d1ebbc.png)  
What i would like to obtain is something like this :  
 ![2023-07-26 10_01_19-InspecteurPalette_518 - shsvindig01 - Ignition Designer](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/2/62a4246ff5c0ccca765bf44d3643baf8a30724bc.png)  
How can I obtain this result?

---

<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:** [July 26, 2023, 6:13pm UTC](https://forum.inductiveautomation.com/t/add-vertical-line-to-xy-chart/76946/2 "2023-07-26T18:13:07Z")

</div>

1. Create a new datasource - say `props.dataSources.marker1`.
2. In that datasource create two data points. (I don't know what your x-axis is so I've just used the default t\_stamp. You'll need to modify to suit.)

```auto
0
    t_stamp : "Tue Aug 09 2018",
    y: 0
1
    t_stamp : "Tue Aug 09 2018",
    y: 1

```

1. Add a new `props.series`. Set the following items:

```auto
1
    data
        source : marker1
        x : t_stamp
        y : y
    xAxis : <set to same as your existing series>
    yAxis : <set to same as your existing series> 
    line
        appearance
            stroke
                color : red

```

1. Do the same for `marker2` if required.
