bindingInfo.setTopNReverse(col, Boolean)

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

Specifies whether filter should extract the top-N or the bottom-N groups based on an aggregate.

Parameter

col

Name of field to filter

Boolean

true: filter bottom N
false: filter top N

Example

Chart1.bindingInfo.setTopN("Company",3);
Chart1.bindingInfo.setTopNReverse("Company",true); // Bottom-N

SetTopNReverse

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