Hi,
I'm trying to display two series of value in a TimeSeriesChart. Actually it's working, I can see 2 trends on my chart, but as I added them in two distinct series in the chart I have 2 y-axes, and I'd like to have one for both. So in my script, I tried this:
self.getSibling("TimeSeriesChart").props.plots.axes = [{'name': 'pH', 'min': 0, 'max': 10}]
self.getSibling("TimeSeriesChart").props.plots.trends = [{'series': tagName, 'axis': 'pH'}, {'series': 'testpH', 'axis': 'pH'}]
and this:
self.getSibling("TimeSeriesChart").props.plots[0].axes = [{'name': 'pH', 'min': 0, 'max': 10}]
self.getSibling("TimeSeriesChart").props.plots[0].trends = [{'series': tagName, 'axis': 'pH'}, {'series': 'testpH', 'axis': 'pH'}]
But none of those is working, I get a "Component error" on my chart.
I wrote that because I tried this config in another test chart with some random values, I changed parameters in the property editor and it worked. So now I want to do it in the script because at the end, my chart will be dynamic, the values display will depend of what I choose in a dropdown box.
Can you tell me why this is not working ?