This example shows how to perform the 'Limit data shown in visualization using markings' operation for a particular visualization using an IronPython script .
Introduction
This example shows how to perform the 'Limit data shown in visualization using markings' operation for a particular visualization using an IronPython script .
Code sample
# Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license. # Retrieve a visualization named "example" and then filter the data using the specified marking. from Spotfire.Dxp.Application.Visuals import BarChart for viz in Document.ActivePageReference.Visuals: if viz.Title == "example": plot = viz.As[BarChart]() # 'Marking' is the actual name of the marking used to filter the data dm = Document.Data.Markings['Marking'] plot.Data.Filterings.Add(dm)
References
License: TIBCO BSD-Style License
Recommended Comments
There are no comments to display.