# XY Chart step line - problem rendering the lines

**URL:** <https://forum.inductiveautomation.com/t/xy-chart-step-line-problem-rendering-the-lines/72396>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [April 13, 2023, 9:21am UTC](https://forum.inductiveautomation.com/t/xy-chart-step-line-problem-rendering-the-lines/72396 "2023-04-13T09:21:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuele.longhi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/manuele.longhi/32/51470_2.png) [@manuele.longhi](https://forum.inductiveautomation.com/u/manuele.longhi)\
**Post date:** [April 13, 2023, 9:21am UTC](https://forum.inductiveautomation.com/t/xy-chart-step-line-problem-rendering-the-lines/72396/1 "2023-04-13T09:21:01Z")

</div>

Hello,  
I am trying to setup an XY Chart displaying "step line" data. To perform some testing, I have dragged the XY Chart component and used the default configurations, applying the following changes:

- I deleted the second series (_the one named **output temp** _)
- I set the **render** property of the first series (_the one named **process temp** _) to "step line", obtaining the following result

 ![Chart](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/7/b7949766e8f892e0cb3de217743698b510a92a62.png)

(_Note that the dates at the bottom at the X chart are formatted M/d/yy_)

What is not clear to me is the following: from the data sources, we can see that **process\_temp** has a value of 63 for Aug 07 2018 and 59 for Aug 08 2018. This is also confirmed by the position of the "dot" in the graph. Why does the line connecting the dots drops in the middle then? Should it not drop exactly at Aug 08 2018? With this representation it kinda looks like the value of process\_temp dropped half way between the 7th and 8th Aug (and the same applies for all the following points).  
I did not see anything in the configuration that would allow me to align the steps with the actual values.

Looking around, I found that in an AM Chart (_which I believe is the library used by Perspective to graph data, feel free to correct me if I am wrong_) this option can be achieved by changing the "locationX" property of the chart (see the [AM Charts documentation](https://www.amcharts.com/docs/v5/charts/xy-chart/series/step-line-series/) for reference). Is there a way to edit the property from the component? Or is there a better way to solve this issue?

Thanks

---

<div class="post-metadata">

**Author:** ![manuele.longhi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/manuele.longhi/32/51470_2.png) [@manuele.longhi](https://forum.inductiveautomation.com/u/manuele.longhi)\
**Post date:** [April 21, 2023, 1:54pm UTC](https://forum.inductiveautomation.com/t/xy-chart-step-line-problem-rendering-the-lines/72396/2 "2023-04-21T13:54:50Z")

</div>

If anyone will see this in the future, the solution is to add the property "startLocation" in the series

 ![startLocation](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/3/6382e2d5dd50ab2dc22029f231567071898df524.png)
