ChartDirector 7.1 (C++ Edition)

PolarLayer.addCustomDataLabel


Usage

TextBox *addCustomDataLabel(int i, const char *label, const char *font = 0, double fontSize = 8, int fontColor = TextColor, double fontAngle = 0);

Description

Adds a custom data label to a data point.

See Font Specification for details on various font attributes.

Arguments

ArgumentDefaultDescription
i(Mandatory)The data point index of the data point. The first data point is 0; 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 custom data label. This may be used to fine-tune the appearance of the custom data label.