bindingInfo.setTextField(col, type)

bindingInfo.getTextField() to obtain the binding information.

Bind the specified field to a TextFrame (text coding).

Parameter

col

Field to be used for text-coding

type

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

Examples

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

bindingInfoSetTextDimension

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

bindingInfoSetTextMeasure

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