How to add new page and new visualization using IronPython script in Spotfire®.
Introduction
How to add new page and new visualization using IronPython script in TIBCO Spotfire®.
Code sample
# Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license. from Spotfire.Dxp.Application.Visuals import BarChart page = Document.Pages.AddNew("New Page") page.AutoConfigure() barChart = page.Visuals.AddNew[BarChart]() barChart.AutoConfigure() barChart.Title = "Bar Chart"
References
- API Reference: Spoftire Analyst
- API Reference: PageCollection. AddNew Method (String)
- API Reference: VisualCollection. AddNew Method (TypeIdentifier)
License: TIBCO BSD-Style License
Back to IronPython Scripting in TIBCO Spotfire Examples: https://community.spotfire.com/s/article/IronPython-Scripting-in-Spotfire
Recommended Comments
There are no comments to display.