Jump to content
  • How to add new page and new visualization using IronPython script in Spotfire®


    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

    License: TIBCO BSD-Style License

    Back to IronPython Scripting in TIBCO Spotfire Examples:  https://community.spotfire.com/s/article/IronPython-Scripting-in-Spotfire

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...