# XY Chart rendering consecutive datasets but not clearing last values when tab is not focused

**URL:** <https://forum.inductiveautomation.com/t/xy-chart-rendering-consecutive-datasets-but-not-clearing-last-values-when-tab-is-not-focused/73164>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 2, 2023, 7:12pm UTC](https://forum.inductiveautomation.com/t/xy-chart-rendering-consecutive-datasets-but-not-clearing-last-values-when-tab-is-not-focused/73164 "2023-05-02T19:12:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sydney.bosworth](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@sydney.bosworth](https://forum.inductiveautomation.com/u/sydney.bosworth)\
**Post date:** [May 2, 2023, 9:11pm UTC](https://forum.inductiveautomation.com/t/xy-chart-rendering-consecutive-datasets-but-not-clearing-last-values-when-tab-is-not-focused/73164/2 "2023-05-02T21:11:36Z")

</div>

I've seen multiple other posts about XY charts rendering more or weird data. I had the issue on one and ending up changing to a timeseries chart after not finding a sure fire fix, obviously not on option for yours..

> [@XY Chart doesn't clear dataset](https://forum.inductiveautomation.com/t/xy-chart-doesnt-clear-dataset/49474/1):
>
> Using Ignition 8.1.7, in Perspective. I’m using an XY chart with a dataset bound to a named query that refreshes every 10 seconds. After a couple of refreshes, my chart looks wonky: Any suggestions?

---

_[View the full topic](https://forum.inductiveautomation.com/t/xy-chart-rendering-consecutive-datasets-but-not-clearing-last-values-when-tab-is-not-focused/73164)._
