Labels

Mark rows

1
2
3
4
5
6
7
from Spotfire.Dxp.Application.Visuals import TablePlot

targetViz = markingViz.As[TablePlot]();

rowSelection = targetViz.Data.DataTableReference.Select(selectStatement);

targetViz.Data.MarkingReference.SetSelection(rowSelection, targetViz.Data.DataTableReference);

Input:
markingViz (Table): A visualization that current has the marking profile applied.
selectStatement (String): A query-like string that indicates what records should me marked.  For example:

columnname > 2

This script can be modified to work with any visualization type.


2 comments: