Cam Deatherage Posted February 10, 2021 Share Posted February 10, 2021 Hello, I have a line chart with three columns in the y axis and a x axis slider (Date) When sliding on the x axis the y axis range stays the same. I would like for this to adjust when sliding and changing the date range to scale to the current values. I've tested out a snippet found onthe community site but still coming up with null values: from Spotfire.Dxp.Application.Visuals import LineChart from Spotfire.Dxp.Application.Visuals import IndividualScalingMode from Spotfire.Dxp.Application.Visuals import AxisRange from Spotfire.Dxp.Data import DataPropertyClass #Define the charts vc1=vc1.As[LineChart]() #Set the IndividualScaling property vc1.YAxis.IndividualScaling=True #Set the Min/Max for each chart #vc1.YAxis.IndexedRange.Item["GROSS_OIL_PROD"]=AxisRange(0,1000) #vc1.YAxis.IndexedRange.Item["WATER_PROD"]=AxisRange(0,1000) #vc1.YAxis.IndexedRange.Item["GROSS_GAS_PROD"]=AxisRange(0,1000) print vc1.YAxis.Range Output:AxisRange[Low=(null), High=(null)] Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now