IUiChartGetTextEventArgs.Text

Syntax

Text: String;

Description

The Text property determines text for a label.

Example

The following example assumes that there is the Chart object of the IChart type, labels are displayed on the graph, and custom data format is set for these points.

If required, displaying labels of data series and setting up custom data format for these labels can be implemented by running the following commands:

«Chart.Series.DisplayLabels := True;

Chart.Series.DefaultLabel.DataFormat := "%Data";»

Sub UiChartOnGetLabelText(Sender: Object; Args: IUiChartGetTextEventArgs);

Begin

Args.Result := True;

Args.Text := Args.PointIndex.ToString;

End Sub UiChartOnGetLabelText;

After executing the example chart labels display number of series point.

See also:

IUiChartGetTextEventArgs | IChartSeries.DisplayLabels | IChartSeries.DefaultLabel