Text: String;
The Text property determines a label text.
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 executing the 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: