SerieIndex: Integer;
The SerieIndex property returns chart series number.
Sub UiChartOnGetSerieName(Sender: Object; Args: IUiChartSerieNameEventArgs);
Begin
Args.Result := "data series" + Args.SerieIndex.ToString;
End Sub UiChartOnGetSerieName;
After executing the example series names are changed: data series 0, data series 1, and so on.
See also: