bindingInfo.setTopNSummaryCol(col,agg)

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

Specifies the aggregate to be used for Top-N/Bottom-N filtering on a given field.

Parameter

col

Name of field to filter

agg

The aggregate by which to filter

Example

Chart1.bindingInfo.setTopN("Company",3);
Chart1.bindingInfo.setTopNSummaryCol("Company","Max(Total)");

SetTopNSummaryCol

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