ChartDirector 7.1 (C++ Edition)

LegendBox.addKey2


Usage

void addKey(int pos, const char *text, int color, int lineWidth = 0, const DrawArea *drawarea = 0);

Description

Adds a custom entry to the legend box with a given legend entry priority.

See LegendBox for more information on legend entry priority system.

Arguments

ArgumentDefaultDescription
pos(Mandatory)The legend entry priority
text(Mandatory)The text of the legend entry.
color(Mandatory)The icon color of the legend entry.
lineWidth0The line width for legend entry that represents lines in line charts.
drawarea[Null]A DrawArea containing the data symbol for the legend entry. This is primarily used for legend entries in scatter charts or in line charts with data symbols.

Return Value

None