SerieIndex: Integer;
The SerieIndex property returns chart series number.
Consider the property use in the UiChartOnGetDataValue event.
Sub UiChartOnGetDataValue(Sender: Object; Args: IUiChartGetDataValueEventArgs);
Begin
Args.Result := True;
Args.Value := Args.PointIndex + Args.SerieIndex;
End Sub UiChartOnGetDataValue;
After executing the example a graph consisting of straight lines is plotted. The number and length of the lines depend on the specified number of series and points on the graph.
See also: