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
- API Reference: BarChart. FittingModels Property
- API Reference: DocumentNodeListBase< T>.Count Property
- API Reference: StraightLineFittingModel. Line Property
License: TIBCO BSD-Style License
Back to IronPyton Scripting in Spotfire Examples: https://community.spotfire.com/s/article/IronPython-Scripting-in-Spotfire
Recommended Comments
There are no comments to display.