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.
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.