ChartDirector Ver 3.0 (C++ Edition)

DataSet.setDataLabelStyle


Usage

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

Description

Enable data labels and set 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.
fontAngle0Set the rotation of the font.

Return Value

A TextBox object that represents the prototype of the data labels. You may use the methods of this object to fine-tune the appearance of the data labels.