# How to set a Target Line in Perspective XY charts

**URL:** <https://forum.inductiveautomation.com/t/how-to-set-a-target-line-in-perspective-xy-charts/100416>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 3, 2025, 10:08am UTC](https://forum.inductiveautomation.com/t/how-to-set-a-target-line-in-perspective-xy-charts/100416 "2025-01-03T10:08:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goutham\_Rao\_Y](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@Goutham\_Rao\_Y](https://forum.inductiveautomation.com/u/Goutham_Rao_Y)\
**Post date:** [January 3, 2025, 10:08am UTC](https://forum.inductiveautomation.com/t/how-to-set-a-target-line-in-perspective-xy-charts/100416/1 "2025-01-03T10:08:29Z")

</div>

Hello team,

I have an XY Chart component in the Ignition Perspective module, and I need to set a target line on it.

- I referred to the following link, but the information provided is slightly different from what I am looking for:  
[XY Chart Example - Line Chart Target Area | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-chart-palette/perspective-xy-chart/xy-chart-example-line-chart-target-area)

- I am looking to add a target line like the one shown in the image below:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/2/32e495108f97c3289b6155c9cd9b21214f7b6ed6.png)

- Could you please guide me on where I can set the target line and customize its color in the XY Chart properties?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/8/98b6754bcbb58dd6ac8d7d5e06c29b8d652401e7.png)

---

<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:** [January 3, 2025, 10:27am UTC](https://forum.inductiveautomation.com/t/how-to-set-a-target-line-in-perspective-xy-charts/100416/2 "2025-01-03T10:27:41Z")

</div>

Add an extra series. It only needs to have two points - one on the left side and one on the right.

Alternatively you can have as many points as there are records on the main plot(s). If the data is generated by SQL query then add the target in there:

```python
SELECT t_stamp, trip_time, 102 AS Target
FROM ...

```

or add a Script Transform on your existing query binding and add in the required column.
