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);

chart with Employee dimension text labels displayed on chart elements

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

chart with Total measure numeric values displayed as text labels

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