Source: IChartSource;
The Source property determines a data source for the ChartWidget component.
Executing the example requires that the repository contains a form with the components:
NavigationBar with the NavigationBar1 identifier.
ChartWidget with the ChartWidget1 identifier.
ChartBox with the ChartBox1 identifier.
UiChart with the UiChart1 identifier. It is required to set the number of points and series for UiChart1. To plot a chart, create the event handlers OnGetDataValue and OnGetSerieName.
Sub UserProc;
Begin
// Specify a data source for the ChartBox component
ChartBox1.Source := UiChart1 As IChartSource;
// Activate the ChartWidget component
ChartWidget1.Active := True;
// Connect the NavigationBar component to ChartWidget
ChartWidget1.NavBar := NavigationBar1;
// Specify a data source for the ChartWidget component
ChartWidget1.Source := UiChart1 As IChartSource;
End Sub UserProc;
After executing the example it will be possible to work with a chart using the NavigationBar component.
See also: