# \[Bug\] Perspective XYChart goes blank when new data sources are added via scripting

**URL:** <https://forum.inductiveautomation.com/t/bug-perspective-xychart-goes-blank-when-new-data-sources-are-added-via-scripting/31791>\
**Category:** Ignition\
**Tags:** ignition80, scripting, perspective\
**Created:** [January 30, 2020, 6:52pm UTC](https://forum.inductiveautomation.com/t/bug-perspective-xychart-goes-blank-when-new-data-sources-are-added-via-scripting/31791 "2020-01-30T18:52:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![on371](https://avatars.discourse-cdn.com/v4/letter/o/c67d28/32.png) [@on371](https://forum.inductiveautomation.com/u/on371)\
**Post date:** [January 30, 2020, 6:52pm UTC](https://forum.inductiveautomation.com/t/bug-perspective-xychart-goes-blank-when-new-data-sources-are-added-via-scripting/31791/1 "2020-01-30T18:52:06Z")

</div>

I’m creating a sort of ribbon chart using the XYChart in perspective, and using scripting to translate from input parameters into data sources. When I set the data sources array using a script, the chart goes blank and doesn’t display the new data as expected. The chart does display when any property under props changes.

This issue happens in both the designer and browser. I am using Ignition 8.0.3

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 30, 2020, 8:35pm UTC](https://forum.inductiveautomation.com/t/bug-perspective-xychart-goes-blank-when-new-data-sources-are-added-via-scripting/31791/2 "2020-01-30T20:35:58Z")

</div>

8.0.3 is an extremely old version, in Perspective terms. A large number of bug fixes have gone into the charting components in Ignition - I would highly suggest upgrading before spending more time on a workaround.
