I’m using an XYChart, the properties of which I populate dynamically. I have just one dataSource in the dataSources prop which I populate with a query binding; the yAxes array prop is also populated with a query binding; the series prop is populated applying a script transform to my dataSource. The weird behavior I’m experiencing is that as soon as the dataSource data gets updated, my XYChart shows the No series properly configured warning. However if I just change the chart title, e.g. by clicking a button in the view that sets the chart title, all my pens are plotted correctly. I tried to work around the problem with a Property Change Script on the dataSource, where I assign the series prop after a delay with the assignLater function from @pturmellater.py module, but with no success - that’s because I thought that dataSource and series props cannot gets populated almost at the same time.
Any suggestion?
I’ve tried populating the datasource and series props in various orders. From separate bindings as well as from the same script transform. I’ve tried pushing the settings to the props, as well as having bindings on the props pull in the settings.
Sometimes it works.
Sometimes I get the “no series properly configured” error.
Sometimes it half works (the chart will be mostly right, just missing colors, etc.
Named query in a table that has a dataset as a result.
XY Chart getting data from that table to the example datasource.
Series property being fed from the example datasource.
It works well until I change the dates to where there isn't any data. With no data it's blank, which I don't mind. When I switch to dates that have data, it displays 'No series properly configured'
Try to always have xAxes, yAxes and series properties as stable as possible. Then apply bindings directly on the nested property your trying to animate/change.
I'm running Ignition 8.1.38 and I'm experiencing the same issue described here when setting up a series on the XYChart via script. After applying the configuration, the message "No series properly configured" appears both in the console and on the XYChart canvas.
I'm quite sure the configuration is correct, since if I manually toggle the series visibility off and then on again, the series renders successfully. It seems like the XYChart component doesn't have enough time to render the series before it's displayed (this issue doesn't occur if a previous series already exists).
I've tried modifying the typical configuration sequence within the script (data source → X axis → Y axis → series), and also introduced delays between steps, but without success.
Is there any workaround currently available, other than using custom properties for the data source binding?