# \[BUG-5805\] XY Chart Line Not Displaying Correctly

**URL:** <https://forum.inductiveautomation.com/t/bug-5805-xy-chart-line-not-displaying-correctly/49570>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [August 4, 2021, 9:28pm UTC](https://forum.inductiveautomation.com/t/bug-5805-xy-chart-line-not-displaying-correctly/49570 "2021-08-04T21:28:24Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbachman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rbachman/32/43718_2.png) [@rbachman](https://forum.inductiveautomation.com/u/rbachman)\
**Post date:** [August 4, 2021, 9:28pm UTC](https://forum.inductiveautomation.com/t/bug-5805-xy-chart-line-not-displaying-correctly/49570/1 "2021-08-04T21:28:24Z")

</div>

I created an XY chart to display data with a line, and the data looked great for a while. Suddenly the line started looking really odd, and I don't know if I changed something that may have caused this.

 ![LineChart](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/6/662e1098151cd201ce578199c3cab3fb60a77db0.jpeg)

However, if I switch the exact same chart to use columns, the chart looks fine.

 ![ColumnChart](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/4/2475a1df4413c5802430476cb0e00d31490026bd.jpeg)

Any idea what is happening?

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [August 5, 2021, 11:04am UTC](https://forum.inductiveautomation.com/t/bug-5805-xy-chart-line-not-displaying-correctly/49570/2 "2021-08-05T11:04:38Z")

</div>

What does the dataset for the chart look like?

---

<div class="post-metadata">

**Author:** ![rbachman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rbachman/32/43718_2.png) [@rbachman](https://forum.inductiveautomation.com/u/rbachman)\
**Post date:** [August 5, 2021, 1:40pm UTC](https://forum.inductiveautomation.com/t/bug-5805-xy-chart-line-not-displaying-correctly/49570/3 "2021-08-05T13:40:25Z")

</div>

It’s a JSON dataset with 2 columns. One of the columns is a number (the height of the bars), and the other column is a timestamp (sorted from left to right). The only change I made between those two screen shots was changing the chart from a line to a bar.

---

<div class="post-metadata">

**Author:** ![Gabriel\_de\_la\_Cruz](https://avatars.discourse-cdn.com/v4/letter/g/9de053/32.png) [@Gabriel\_de\_la\_Cruz](https://forum.inductiveautomation.com/u/Gabriel_de_la_Cruz)\
**Post date:** [August 16, 2023, 7:39pm UTC](https://forum.inductiveautomation.com/t/bug-5805-xy-chart-line-not-displaying-correctly/49570/4 "2023-08-16T19:39:22Z")

</div>

I am having a similar issue. Did you find a solution? It looks ok when you initially load the chart. But when you leave it open and you look at another tab or another site and you view it again, the line chart goes out of order. Refreshing the page fixes it but is not a long-term solution.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/1/114f0609ecece31355d17dcf4d4215914ecbe5ea.png)

---

<div class="post-metadata">

**Author:** ![avaughn](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/avaughn/32/38972_2.png) [@avaughn](https://forum.inductiveautomation.com/u/avaughn)\
**Post date:** [August 16, 2023, 8:02pm UTC](https://forum.inductiveautomation.com/t/bug-5805-xy-chart-line-not-displaying-correctly/49570/5 "2023-08-16T20:02:46Z")

</div>

I believe this is a known bug. Just to confirm though, you're only noticing the issue if the chart data updates while the Perspective session is in the background?

---

<div class="post-metadata">

**Author:** ![Gabriel\_de\_la\_Cruz](https://avatars.discourse-cdn.com/v4/letter/g/9de053/32.png) [@Gabriel\_de\_la\_Cruz](https://forum.inductiveautomation.com/u/Gabriel_de_la_Cruz)\
**Post date:** [August 16, 2023, 8:44pm UTC](https://forum.inductiveautomation.com/t/bug-5805-xy-chart-line-not-displaying-correctly/49570/6 "2023-08-16T20:44:28Z")

</div>

That is correct. When it updates and we are not viewing it or its in the background, then the chart starts to look like the image I posted. But if the chart is being viewed the entire time, the issue doesn't happen.

---

<div class="post-metadata">

**Author:** ![avaughn](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/avaughn/32/38972_2.png) [@avaughn](https://forum.inductiveautomation.com/u/avaughn)\
**Post date:** [August 16, 2023, 9:15pm UTC](https://forum.inductiveautomation.com/t/bug-5805-xy-chart-line-not-displaying-correctly/49570/7 "2023-08-16T21:15:59Z")

</div>

Thank you for the confirmation! I went ahead and added this thread to the internal ticket.

---

<div class="post-metadata">

**Author:** ![Gabriel\_de\_la\_Cruz](https://avatars.discourse-cdn.com/v4/letter/g/9de053/32.png) [@Gabriel\_de\_la\_Cruz](https://forum.inductiveautomation.com/u/Gabriel_de_la_Cruz)\
**Post date:** [August 19, 2024, 5:55pm UTC](https://forum.inductiveautomation.com/t/bug-5805-xy-chart-line-not-displaying-correctly/49570/8 "2024-08-19T17:55:20Z")

</div>

Any progress on this ticket?

---

<div class="post-metadata">

**Author:** ![Will\_Chomyc](https://avatars.discourse-cdn.com/v4/letter/w/a183cd/32.png) [@Will\_Chomyc](https://forum.inductiveautomation.com/u/Will_Chomyc)\
**Post date:** [October 7, 2024, 7:37pm UTC](https://forum.inductiveautomation.com/t/bug-5805-xy-chart-line-not-displaying-correctly/49570/9 "2024-10-07T19:37:35Z")

</div>

I would also be curious to know how this is progressing. Currently I have all my line graph data auto hiding/unhiding every minute to combat this, which removes the extra lines but makes for a pretty choppy looking user experience.

---

<div class="post-metadata">

**Author:** ![Jesse\_Dale\_Gimenez](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jesse_dale_gimenez/32/68763_2.png) [@Jesse\_Dale\_Gimenez](https://forum.inductiveautomation.com/u/Jesse_Dale_Gimenez)\
**Post date:** [March 17, 2025, 2:01am UTC](https://forum.inductiveautomation.com/t/bug-5805-xy-chart-line-not-displaying-correctly/49570/10 "2025-03-17T02:01:27Z")

</div>

Any progress on the ticket?

---

<div class="post-metadata">

**Author:** ![avaughn](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/avaughn/32/38972_2.png) [@avaughn](https://forum.inductiveautomation.com/u/avaughn)\
**Post date:** [March 17, 2025, 1:01pm UTC](https://forum.inductiveautomation.com/t/bug-5805-xy-chart-line-not-displaying-correctly/49570/11 "2025-03-17T13:01:38Z")

</div>

Apologies, I intended on updating this thread, but a fix has been merged in 8.1.48 and should be available to test in the nightly. I'm not sure why the release note isn't showing up in the [nightly changelogs](https://forum.inductiveautomation.com/t/nightly-8-1-changelogs-2025/100308/37). I'll have to look into that.
