# \[bug-14840\]Query Binding for Time Series Chart Not Working

**URL:** <https://forum.inductiveautomation.com/t/bug-14840-query-binding-for-time-series-chart-not-working/28121>\
**Category:** Ignition Early Access\
**Tags:** perspective\
**Created:** [September 9, 2019, 9:32pm UTC](https://forum.inductiveautomation.com/t/bug-14840-query-binding-for-time-series-chart-not-working/28121 "2019-09-09T21:32:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattUlmer](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mattulmer/32/8736_2.png) [@MattUlmer](https://forum.inductiveautomation.com/u/MattUlmer)\
**Post date:** [September 9, 2019, 9:32pm UTC](https://forum.inductiveautomation.com/t/bug-14840-query-binding-for-time-series-chart-not-working/28121/1 "2019-09-09T21:32:14Z")

</div>

I am having a problem binding the series[0].data property to a Dataset (via a named query). The named query runs fine, the binding seems to be working, and the Time Series chart is not complaining about any bad properties being set (it does complain when the data property is set incorrectly).

The query is using ‘time’ as the first output, and then the numeric data next, as seen in the query (image below), so based on the documentation that looks fine. The component is reporting an error though, as seen in the image. There are no log outputs for the error however.

Any thoughts?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/0dc792d02eb0618046be877963f276f92117277d.png)

---

<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:** [September 9, 2019, 9:48pm UTC](https://forum.inductiveautomation.com/t/bug-14840-query-binding-for-time-series-chart-not-working/28121/2 "2019-09-09T21:48:34Z")

</div>

Make sure the data is ordered on the x-axis, ascending.

---

<div class="post-metadata">

**Author:** ![MattUlmer](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mattulmer/32/8736_2.png) [@MattUlmer](https://forum.inductiveautomation.com/u/MattUlmer)\
**Post date:** [September 10, 2019, 12:53pm UTC](https://forum.inductiveautomation.com/t/bug-14840-query-binding-for-time-series-chart-not-working/28121/3 "2019-09-10T12:53:30Z")

</div>

I ordered it in the query with your standard order statement (Order By dts Desc). The Named Query works as expected.

-Matt

---

<div class="post-metadata">

**Author:** ![MattUlmer](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mattulmer/32/8736_2.png) [@MattUlmer](https://forum.inductiveautomation.com/u/MattUlmer)\
**Post date:** [September 10, 2019, 12:57pm UTC](https://forum.inductiveautomation.com/t/bug-14840-query-binding-for-time-series-chart-not-working/28121/4 "2019-09-10T12:57:34Z")

</div>

Oh nevermind, Asc. Ya, that did the trick.Thank you!

---

<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:** [September 10, 2019, 3:21pm UTC](https://forum.inductiveautomation.com/t/bug-14840-query-binding-for-time-series-chart-not-working/28121/5 "2019-09-10T15:21:36Z")

</div>

Good stuff. For what it’s worth, that’s somewhat expected behavior (the browser console should have some kind of an error indicating that the data is expected to be ordered), _but_ we are still planning on doing something with the component to at least prevent it from completely blowing up.
