# XY Chart -Cannot Read Property 'Push' of Null

**URL:** <https://forum.inductiveautomation.com/t/xy-chart-cannot-read-property-push-of-null/68144>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [January 3, 2023, 6:36am UTC](https://forum.inductiveautomation.com/t/xy-chart-cannot-read-property-push-of-null/68144 "2023-01-03T06:36:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shyam](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/shyam/32/42528_2.png) [@Shyam](https://forum.inductiveautomation.com/u/Shyam)\
**Post date:** [January 3, 2023, 6:36am UTC](https://forum.inductiveautomation.com/t/xy-chart-cannot-read-property-push-of-null/68144/1 "2023-01-03T06:36:40Z")

</div>

Hi All,  
I am facing the issue while binding in XY Chart through Query binding.  
Can someone please help me out on this?  
PFA console info...

 ![issue_2](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/a/bab103e5efa29405725edaaa840e9233d8f2272e.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, 2023, 7:09am UTC](https://forum.inductiveautomation.com/t/xy-chart-cannot-read-property-push-of-null/68144/2 "2023-01-03T07:09:36Z")

</div>

See if this article from [CodingBeauty](https://codingbeautydev.com/blog/javascript-cannot-read-property-push-of-undefined/#:~:text=The%20%E2%80%9Ccannot%20read%20property%20'push'%20of%20undefined%E2%80%9D%20error,initializing%20it%20with%20an%20array.) helps. Otherwise check your binding and see why it's returning null or None.

---

<div class="post-metadata">

**Author:** ![Shyam](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/shyam/32/42528_2.png) [@Shyam](https://forum.inductiveautomation.com/u/Shyam)\
**Post date:** [January 3, 2023, 7:52am UTC](https://forum.inductiveautomation.com/t/xy-chart-cannot-read-property-push-of-null/68144/3 "2023-01-03T07:52:51Z")

</div>

Thanks for the quick info @Transistor  
it's working fine in runtime but shows error in the designer panel.  
and also, an issue found with my binding and corrected.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [January 3, 2023, 9:41am UTC](https://forum.inductiveautomation.com/t/xy-chart-cannot-read-property-push-of-null/68144/4 "2023-01-03T09:41:04Z")

</div>

You'll need to show us your binding so we can help you figure out why you're getting nulls.

---

<div class="post-metadata">

**Author:** ![Shyam](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/shyam/32/42528_2.png) [@Shyam](https://forum.inductiveautomation.com/u/Shyam)\
**Post date:** [January 4, 2023, 7:56am UTC](https://forum.inductiveautomation.com/t/xy-chart-cannot-read-property-push-of-null/68144/5 "2023-01-04T07:56:05Z")

</div>

Sorry for the late response...that was error with my query.So i got Null.

Thanks
