General

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

If you have any questions, comments, or ideas, feel free to get in touch!