General

These IronPython scripts below show how to modify any of the Pie Chart visualization settings found on the General tab of the Pie Chart 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 Pie Chart General Tab Options:

This IronPython script shows how to change the following:

  1. Show (or hide) the title
  2. Change the title
  3. Show (or hide) the description
  4. Change the description
from Spotfire.Dxp.Application.Visuals import *

# 1. Show (or hide) the title
myVis.ShowTitle = True


# For other properties, first get myVis as a Visualization
myVis = myVis.As[Visualization]()

# 2. Change the title
myVis.Title = 'My New Title'

# 3. Show (or hide) the description
myVis.ShowDescription = True

# 4. Change the description
myVis.Description = 'My New Description'
Welcome!

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