Jump to content
  • How to get count and list all the Lines & Curves of a visualization in Spotfire® Using IronPython Scripting


    This code snippet details on to get count and how to list all the Lines & Curves of a visualization.

    Introduction

    This code snippet details on to get count and how to list all the Lines & Curves of a visualization.

     

    Code sample

    # Copyright © 2017. TIBCO Software Inc.  Licensed under TIBCO BSD-style license.
    
    from Spotfire.Dxp.Application.Visuals import *
    
    barChart = bc.As[BarChart]()
    
    print barChart.FittingModels.Count
    
    for fm in barChart.FittingModels:
    	print fm.TypeId.DisplayName
    	print fm.Line.DisplayName
     

     

    References

    License:  TIBCO BSD-Style License

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


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...