Labels

These IronPython scripts below show how to modify any of the Treemap visualization settings found on the Labels tab of the Treemap Properties dialog box in the Spotfire user interface.
Note

In each of the scripts below, it is assumed that the MyVis variable references the targeted visualization. See here for more information about referencing visualizations.

Change Treemap Labels Tab Options:

This IronPython script shows how to change the following, in order from top to bottom in the user interface:

  1. Show (or hide) hierarchy headers
  2. Show (or hide) labels
from Spotfire.Dxp.Application.Visuals import *

myVis = myVis.As[Visualization]()

# 1. Show (or hide) hierarchy headers
myVis.ShowHierarchyHeaders = True

# 2. Show (or hide) labels
myVis.ShowLabels = True
Welcome!

The purpose of this website is to provide a comprehensive, accurate, and efficient IronPython reference for Spotfire developers.