# XYChart Renders Before dataSources Bindings Are Complete

**URL:** <https://forum.inductiveautomation.com/t/xychart-renders-before-datasources-bindings-are-complete/69270>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [February 1, 2023, 1:52pm UTC](https://forum.inductiveautomation.com/t/xychart-renders-before-datasources-bindings-are-complete/69270 "2023-02-01T13:52:36Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Stephen\_Clark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/stephen_clark/32/43319_2.png) [@Stephen\_Clark](https://forum.inductiveautomation.com/u/Stephen_Clark)\
**Post date:** [February 2, 2023, 4:17pm UTC](https://forum.inductiveautomation.com/t/xychart-renders-before-datasources-bindings-are-complete/69270/6 "2023-02-02T16:17:58Z")

</div>

Hi Kyler,

The error is shown in the screenshot below. The date range is expecting a string instead of an integer, but it only works with an integer in milliseconds. Using a Date or a string of the date (i.e. toString(Date)) doesn't work. Using a string of the milliseconds doesn't work either.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/6/7603885302aba632827ffb219af64f0fd31150fa.png)

There's a couple forum posts about this.

> [@Perspective: XY Chart Date Range Not Working](https://forum.inductiveautomation.com/t/perspective-xy-chart-date-range-not-working/33972/7):
>
> In my case, the value must be an integer to work. My value was a date, so I added a Transform in my binding to convert the date to an integer.

> [@XYChart Date X-Axis Range](https://forum.inductiveautomation.com/t/xychart-date-x-axis-range/29973):
>
> I’m using strict x-axis date ranges on an XYChart bound to two DateTime Pickers, and after upgrading to 8.0.6 the chart stopped working correctly. In order to get the chart working again, I had to add a transform to get the dates into milliseconds. It would be nice if these properties would accept the java.util.date objects that the DateTime Picker produces. XYChart.xAxes.0.date.range.max XYChart.xAxes.0.date.range.min

I don't think this would cause the refresh issue, but maybe I'm wrong?

I do see the same results in runtime, but it's not as obvious what's causing the issue because you can't see the properties update in real time.

Same as runtime, Read/Write mode in the Designer doesn't work either.

---

_[View the full topic](https://forum.inductiveautomation.com/t/xychart-renders-before-datasources-bindings-are-complete/69270)._
