bindingInfo.getSecondaryField(col, binding)

bindingInfo.setSecondaryField(col1, col2, binding) to set the binding information.

Get the secondary field used in a bivariate aggregation method (e.g., correlation, covariance, etc.).

Parameter

col

Field for which to obtain secondary field

binding

Field binding, one of the following constants:

Chart.BINDING_FIELD:   // bound to X or Y axis
Chart.AESTHETIC_COLOR: // bound to Color
Chart.AESTHETIC_SHAPE: // bound to Shape
Chart.AESTHETIC_SIZE:  // bound to Size
Chart.AESTHETIC_TEXT:  // bound to Text

Returns

String

Field name

Example

For primary field “Price” bound to the Y-axis:

var col2 = Chart1.bindingInfo.getSecondaryField("Price", Chart.BINDING_FIELD);
Dashboard script that modifies bindingInfo should generally be placed in the onRefresh handler. See Add Dashboard Script.