Skip to Main Content
Spotfire Ideas Portal
Status Future Consideration
Product Spotfire
Categories API
Created by Guest
Created on Jan 30, 2020

read the auto scale function through the API

The ScaleAxisBase.Range currently returns a null value if auto scale is on. I would like to read the auto scale function so i can give multiple graphs the same scale. This especially handy for data where you can not up front deterimene the scale or where range varies a lot over your filter selection.  

  • Attach files
  • Guest
    Oct 12, 2021

    One of my customers is asking for this API too.

    That is, using IronPython to read the min range and max range, exactly the same values as clicking button "Set to Current Range" on Y Axis/Value Axis property page.

    In Spotfire 7.11, we can read the min and max range by temporarily set manul zoom to true, however it doesn't work in 10.10 any more.

    from Spotfire.Dxp.Application.Visuals import *



    print v.YAxis.ZoomRange


    #result is AxisRange[Low=0, High=43133311]