ChartDirector 7.0 (PHP Edition)

LegendBox.addText


Usage

addText(text)

Description

Adds a custom entry to the legend box without the built-in icon.

Although the entry is text only, you can use CDML to include shapes and icons into the displayed text and to format the text.

This method adds an entry within a legend entry priority of 1 (followed by 2, 3, 4, ... for repeated calls). This has higher priority than entries added automatically by ChartDirector for representing data sets. As a result, by default, the custom entry will appear before the automatic entries.

To control the order of the custom entry relative to the automatic entries, use LegendBox.addKey2.

See LegendBox for more information on legend entry priority system.

Arguments

ArgumentDefaultDescription
text(Mandatory)The text of the legend entry.

Return Value

None