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 Appearance Tab Options:
This IronPython script shows how to change the following, in order from top to bottom in the user interface:
- Sort sectors by size
- Use separate color for marked items
from Spotfire.Dxp.Application.Visuals import * myVis = myVis.As[Visualization]() # 1. Sort sectors by size myVis.VisualAttributes.SortSectorsBySize = True # 2. Use separate color for marked items myVis.UseSeparateColorForMarkedItems = True
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!