ChartDirector 7.1 (C++ Edition)

Layer.setAggregateLabelStyle


Usage

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

Description

Enables aggregate labels and sets their styles.

Aggregate data labels applies to layer types that contains "aggregated data", such as stacked bar layer and stacked area layer. In these layer types, data labels (see Layer.setDataLabelStyle) represents a single data item, while aggregate labels represents the stacked object.

See Font Specification for details on various font attributes.

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 aggregate data labels. This may be used to fine-tune the appearance of the aggregate data labels.