ChartDirector 7.1 (C++ Edition)

DataSet.setDataLabelStyle


Usage

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

Description

Enables data labels and sets their styles.

To set the data label styles for all data sets in a layer, use Layer.setDataLabelStyle.

For details description of data labels, please refer to :Layer.setDataLabelStyle.

Arguments

ArgumentDefaultDescription
font""The font used to draw the labels.
fontSize8The font size used to draw the labels.
fontColorTextColorThe color used to draw the labels.
fontAngle0The rotation angle of the labels.

Return Value

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