Trouble displaying multiple series on a single Perspective Time Series Chart

I am having trouble with the time series chart. I successfully created one in the past (which only ever shows just 1 series) by creating a custom property on my root container called "tagHistory" and binding my chart's "data" property to that.

This is the working time series chart with just 1 series.

This is the binding on "data".

Here is a closer look at what "tagHistory" actually is. There is only ever 1 instance of "tagHistory" on this view.
image

However, on this other view, I am attempting to put multiple series into a single time series chart with a binding on the root of the array (which is "series"). After setting up the same type of bindings as above, I end up with the below. I was expecting a clean time series dataset like in the first screenshots above. I am realizing there is no way to bind the "data" property of each series instance to a tag history binding, as this screen is pretty dynamic and can have any number of series going on. I need each of my "data" values to be a dataset with a tag history binding based on the path.

Is there a way to do what I am envisioning?

Edit: It looks like I'll have to modify my bindings with system.tag.queryTagHistory and give the user a method to refresh the history dataset(s). Does this seem right?

1 Like

I got it to work by using system.tag.queryTagHistory for each instance. But now I have a new problem -- each pen is getting its own y axis. For the life of me I can't find where I can get rid of these. I'd love just 1 static y axis for all scenarios...

image

Edit:

I think I got it figured out... Just had to bind my trends value to the series such that each line utilizes the same defined axis.

image

image

How do I get different colors from my colorScheme to apply to each unique pen? I have tried using empty values for the "columns" colors, as well as manually pushing values into the column colors through the "trends" binding. I can only get the pens to change color if I use no bindings here and just configure it manually. But I need something dynamic here.

This is what I tried: