bindingInfo.getFormula(col,binding)

bindingInfo.setFormula(col, formula, binding) to set the binding information.

Returns the aggregation method used for a measure. The measure can be bound to the X or Y axis, or to one of the VisualFrames (ColorFrame, SizeFrame, ShapeFrame, TextFrame).

Parameter

col

Field for which to obtain summary method

binding

The field’s binding, one of the following:

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

Return

The formula name (String)

Example

For a field ‘Total’ bound to the Y-axis:

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