# Trouble displaying multiple series on a single Perspective Time Series Chart

**URL:** <https://forum.inductiveautomation.com/t/trouble-displaying-multiple-series-on-a-single-perspective-time-series-chart/87360>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 14, 2024, 7:39pm UTC](https://forum.inductiveautomation.com/t/trouble-displaying-multiple-series-on-a-single-perspective-time-series-chart/87360 "2024-03-14T19:39:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bushmatic](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bushmatic/32/87014_2.png) [@Bushmatic](https://forum.inductiveautomation.com/u/Bushmatic)\
**Post date:** [March 14, 2024, 7:39pm UTC](https://forum.inductiveautomation.com/t/trouble-displaying-multiple-series-on-a-single-perspective-time-series-chart/87360/1 "2024-03-14T19:39:54Z")

</div>

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.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/8/189315f8af6ba408285310bcb313224d0858ad32.png)

This is the binding on "data".

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/1/a15c0b8b5d47b357465a0df850e2d737a351cc1e.png)

Here is a closer look at what "tagHistory" actually is. There is only ever 1 instance of "tagHistory" on this view.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/c/1cce54f39a2113dd78a6aeeeb6cc03a409d9adf0.png)

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.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/5/c551f953abc2eb1ebfa314c4d46430a36ecaa002.png)

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?

---

<div class="post-metadata">

**Author:** ![Bushmatic](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bushmatic/32/87014_2.png) [@Bushmatic](https://forum.inductiveautomation.com/u/Bushmatic)\
**Post date:** [March 14, 2024, 8:49pm UTC](https://forum.inductiveautomation.com/t/trouble-displaying-multiple-series-on-a-single-perspective-time-series-chart/87360/2 "2024-03-14T20:49:04Z")

</div>

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](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/4/b4b11ee0d4a16c97ff6806cb626e20a9873adf00.png)

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](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/0/e00299fd5438603a96a484051ca5bfff8f4a30a8.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/6/569fd1213aac8ff82bfbc0da1d922a5c67e3f274.png)

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

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/5/25ec204b0f064bbe0434eee1f354999e97478886.png)

This is what I tried:

> [@Perspective Time Series Chart - Pen Colors](https://forum.inductiveautomation.com/t/perspective-time-series-chart-pen-colors/27479/2):
>
> Hi @vcgasman, those defaultStyles apply to all charts. To create a unique style for each trend, there is a columns array where you can limit or configure the columns to display in the trend. You’ll need to enter the column key (which is the column name in the series to which the trend is bound), and then you’ll have the ability to apply style to that specific column. You can either give it a color, or you can provide styles for any of the four states (normal, highlighted, selected, and muted)…
