bindingInfo.getColumnOrder(col)

bindingInfo.setColumnOrder(col, order, [sortCol]) to set the binding information.

Returns the sorting order for a specified dimension.

Parameter

col

Name of field for which to obtain sorting

Return

Number

1=ascending
2=descending
0=none

Example

var ord = Chart1.bindingInfo.getColumnOrder("Company")
Dashboard script that modifies bindingInfo should generally be placed in the onRefresh handler. See Add Dashboard Script.