Set upper and lower bound through scripting in vision chart

hi,
i want to set the upper and lower bound through scripting in vision chart.
i tried this code:
chart = self.Data|
axes = chart.getYAxes()
axis.setLowerBound(20)
axis.setUpperBound(100)
chart.setYAxes(axes)
chart.createChart()

but its not working

I haven't dug too deeply, but based on what you pasted, you do not have 'axis' defined; 'axes', yes, but not 'axis'

1 Like

It would be something like this in the configureChart extension function.

axis = chart.plot.rangeAxis
axis.lowerBound = 20
axis.upperBound = 100
1 Like

thanks its working