bindingInfo.setShapeField()

Bind the specified field to a ShapeFrame (shape coding). The aesthetic treatment applied to the chart elements depends on the type of the chart:

Parameter

col

Field to be used for shape-coding

type

One of the following: Chart.STRING, Chart.DATE, or Chart.NUMBER

Examples

Dimension (categorical) field
Chart1.bindingInfo.setShapeField("Employee",Chart.STRING);

bindingInfoSetShapeDimension

Measure (numerical) field
Chart1.bindingInfo.setShapeField("Total",Chart.NUMBER);

bindingInfoSetShapeMeasure

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