ChartDirector Ver 4.1 (ColdFusion Edition)

Layer.addCustomDataLabel


Usage

addCustomDataLabel(dataSet, dataItem, label [, font [, fontSize [, fontColor [, fontAngle ]]]])

Description

Adds a custom data label to a data point.

Data labels are text used label data points in the layer. Please refer to Layer.setDataLabelStyle for a more detail description.

See Font Specification for details on various font attributes.

Arguments

ArgumentDefaultDescription
dataSet(Mandatory)The data set number for the data point. The first data set is 0, while the nth data set is (n - 1).
dataItem(Mandatory)The data point number for the data point within the data set. The first data point is 0, while the nth data point is (n - 1).
label(Mandatory)A text string representing the data label. Parameter Substitution and Formatting is supported.
font""The font used to draw the label.
fontSize8The font size used to draw the label.
fontColorTextColorThe color used to draw the label.
fontAngle0The rotation angle of the label.

Return Value

A TextBox object representing the prototype of the obj. This may be used to fine-tune the appearance of the obj.