UiChart.OnGetDataValue

Syntax

Sub OnGetDataValue(Sender: Object; Args: IUiChartGetDataValueEventArgs);

Begin

//set of operators

End Sub OnGetDataValue;

Parameters

The Sender parameter returns the component that has generated the event.

The Args parameter allows to define event parameters.

Description

The OnGetDataValue event is used to build the chart.

NOTE. This event occurs only when the number of graph series is less than or equal to 99.

Example

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 built. The number and length of the lines depend on the specified number of series and points on the graph.

See also:

UiChart