Marcos Justine Posted July 15, 2016 Share Posted July 15, 2016 Hello, I am looking to change the min/max values of the x-axis of a line chart using different buttons. For example, a YTD button, would make the min value of the x-axis equivalent to first day of the year, and the max value would be the latest date of the year. This would be a similar functionality to that of finance sites that show trend lines for different date ranges. Any/all suggestions are appreciated. Thanks, M Link to comment Share on other sites More sharing options...
Manish Patel 2 Posted August 3, 2016 Share Posted August 3, 2016 e.g. from Spotfire.Dxp.Application.Visuals import ScatterPlot, IndividualScalingMode, AxisRange scatterPlot = targetVis.As[scatterPlot]() therange = AxisRange(-1000, 1000) scatterPlot.YAxis.Range = therange Link to comment Share on other sites More sharing options...
Julie Schellberg 3 Posted January 10, 2018 Share Posted January 10, 2018 I built a template for this purpose and posted it on the Ruths.ai Exchange Marketplace. It is free to download and has detailed instructions for creating the controls and the code. https://exchange.ai/downloads/change-axis-range-ironpython/ Link to comment Share on other sites More sharing options...
Adam Bale Posted July 30, 2019 Share Posted July 30, 2019 Thanks for the script. How would I adapt it for a combo chart with multiple scales 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