The following script will demonstrate how to apply Color Schemes stored in the document or library using an IronPython script.
Introduction
The following script will demonstrate how to apply Color Schemes stored in the document or library using an IronPython script.
Code Sample
# Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license. ################################################## from Spotfire.Dxp.Application.Visuals import * #viz is an input parameter, referenced to the visualization where Color Scheme needs to be applied. vis = viz.As[BarChart]() #Replace BarChart with your visualization type. vis.ColorAxis.Coloring.Apply("ColorSchemeName") #ColorSchemeName should be stored in the document ##################################################
References
License: TIBCO BSD-Style License
Recommended Comments
There are no comments to display.