Jump to content
We've recently updated our Privacy Statement, available here. ×
  • How to Configure a Visualization When No data is Marked in Master Visualization in Spotfire® Using IronPython Scripting


    This article provides a sample script on how to configure the visualization when no data is marked in the Master Visualization i.e., when the current visualization is limited by a marking.

    Introduction

    This article provides a sample script on how to configure the visualization when no data is marked in the Master Visualization i.e., when the current visualization is limited by a marking.

    Code Sample

    # Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
    
    from Spotfire.Dxp.Application.Visuals import *
    from Spotfire.Dxp.Data import LimitingMarkingsEmptyBehavior
    
    #define script parameter referring to the visualization
    bChart=viz.As[BarChart]()
    
    # To Show a Custom Message
    bChart.Data.LimitingMarkingsEmptyBehavior = LimitingMarkingsEmptyBehavior.ShowMessage
    bChart.Data.LimitingMarkingsEmptyMessage="This is the custom empty message"
    
    #To Show All data
    #bChart.Data.LimitingMarkingsEmptyBehavior = LimitingMarkingsEmptyBehavior.ShowAll
    #To Show Empty Visualization
    #bChart.Data.LimitingMarkingsEmptyBehavior = LimitingMarkingsEmptyBehavior.ShowEmpty
     

    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...