How to set in a TimeSeriesChart the Y-Axis range?

Hi,
We have a TimeSeriesChart showing the value of a tag through a Tag History Binding.

The chart gets configured with this script:

> 		#Configure the trend
> 		self.getChild("TimeSeriesChart").props.title.text = 'Cooking Tank ' + Tank
> 		self.getChild("TimeSeriesChart").props.legend.visible = True
> 		self.getChild("TimeSeriesChart").custom.key[0].alias = 'Temp Probe ' + Tank	
> 		self.getChild("TimeSeriesChart").custom.key[0].path =  DeviceName
> 		self.getChild("TimeSeriesChart").props.plots[0].axes[0].name =  'Temp Probe ' + Tank
> 		self.getChild("TimeSeriesChart").props.plots[0].axes[0].min = 0
> 		self.getChild("TimeSeriesChart").props.plots[0].axes[0].max = 100

De data shown in the Chart is correct but we would like to have the Y-Axis range from 0 to 100 but it is auto range with the min max of the values.
Do you know how could we set the Y-Axis range?

Double check to make sure that you have assigned the series and axis values under the trends property.

You have to set the series and axis properties under plots.trends to whatever you have your Y axis settings named and your series named to get the Y axis to be overridden from the auto range to the settings you want to display.

There is more information in this older post as well.

1 Like

Thank you very much, Programmatic.
This is exactly what I was looking for.
My apologies I didn't see the post.

1 Like