bindingInfo.setTopN(col, N)

bindingInfo.getTopN(col) to obtain the binding information.

Filters the top or bottom N groups for a specified field based on an aggregate measure.

Parameter

col

Name of filtered field

N

The number of top or bottom groups to filter

Example

Chart1.bindingInfo.setTopN("Company",3)

SetTopN

Dashboard script that modifies bindingInfo should generally be placed in the onRefresh handler. See Add Dashboard Script.