The Example Using Chart In Borland Delphi 7
In this writing will discuss about how to use the chart in Delphi 7. In the example that is made by using Delphi 7, chart will appear 2 data in the form of incremental data number, the first data named data 1 and the second data named data 2. Data 1 is incremental data 1 that is begun from 0 until 10; while data 2 is same. Yet, in the beginning condition of data 1 start from 0 while data 2 start from 1.
To make application as the explanation above, please enter the components in the table below into design form.
Arrange the design form visualization so that become like the following picture below:
|Component Name||Event||SOURCE CODE|
|Timer1||OnTimer||if data1<10 then inc(data1); |
if data2<10 then inc(data2);
if data1>=10 then data1:=0;
if data2>=10 then data2:=0;
Before execute the program, please declare 2 kind global variable and give it name data 1 and data 2 with integer data type as the following picture below;
picture variable declaration
Please execute the application that had been made, will appear as follows:
Picture. The result of application execution that had been made.
This following is the application picture when it is run
click the (Show Chart Button)