ChartDirector 6.0 (C++ Edition)

PieChart.setLabelStyle


Usage

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

Description

Sets the style used to draw all sector labels.

This method affects all sectors. To set the label style for one particular sector only, use Sector.setLabelStyle.

See Font Specification for details on various font attributes.

Arguments

ArgumentDefaultDescription
font""The font used to draw the sector labels.
fontSize8The font size in points.
fontColorTextColorThe text color for the sector labels.

Return Value

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