IChartLabel.Text

Syntax

Text: String;

Description

The Text property returns the text of data label on the chart.

Example

To execute this example, create a regular report with a chart on the report sheet. A unit is to be added to the report and the UserProc procedure is called from this unit using the hyperlink. The inspector of unit assemblies should contain links to the Chart, Report and Tab system assemblies.

Sub UserProc;
Var
    Chart: IChart;
Begin
    Chart := (PrxReport.ActiveReport.ActiveSheet As IPrxTable).TabSheet.Objects.Item(1).Extension As IChart;
    WinApplication.InformationBox(Chart.Series.Item(0).Label(0).Text);
End Sub UserProc;

After executing the example, clicking the hyperlink displays the message that contains the text of the first label of the first data series on the chart.

See also:

IChartLabel