ChartDirector 5.1 (.NET Edition)

LegendBox.setText


Usage

[VB] Public Sub setText(text As String)
[C#] public void setText(string text);

Description

Sets the template of the legend text.

The default template is "{dataSetName}", which means the name of the data set will be used as the legend text.

The legend key text can be modified to include other information. For example, in a pie chart, "{label}: {value}" means the legend text will consist of the sector label followed by the sector value.

Please refer to Parameter Substitution and Formatting on all available parameters and how to format them.

Arguments

ArgumentDefaultDescription
text(Mandatory)The legend text template.

Return Value

None