Jump to content

How do I determine the number of columns selected in a property control for a cross table vertical axis


Cheryl Krueger

Recommended Posts

We have a cross table where the vertical axis isbased upon a property control. The property control is a list of 6 columns. We will be selecting one to four columns to set the property control. This all works great!

Now we want to change the width of these columns selected for the vertical axis to be around 160 pts. The default seems to be around 60 pts. I have an iron python script to change the width of the columns, but I get an error if I try to set the width for more "Row Headers" than what was selected in the property control.

My question is - How do I determine how many columns were selected in the property control or how many row headers are now in the visualization .

Below is my script to change the headers. I would like to loop through the index based upon the number of columns selected in the property control.

We are on Spotfire 7.5.

-------

from Spotfire.Dxp.Application.Visuals import CrossTablePlot

crossTable = viz.As[CrossTablePlot]()

crossTable.RowHeaderWidths[0]=160

crossTable.RowHeaderWidths[1]=160

crossTable.RowHeaderWidths[2]= 160

-----

Link to comment
Share on other sites

  • 9 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...