XYChart Date X-Axis Range

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

1 Like

I spent about an hour trying to figure out why the max and min ranges weren’t working on the XY Chart, and this answered my question! I am on 8.1 and the same issue persists.

Another thing is that by using the timestamp, it has to be an int for it to work, but Ignition throws an error saying it expects a string in date.range.max and min.

I'm on 8.1.20 and found the same results. Thanks for posting!

Thank you, this ended up working well. For future reference, the transform is toMillis(date) and it still returns an error:

image