|
Delphi
Tutorial Graphic Charts - Dynamically add data points to chart.

Download this example
Use
following procedure to add data points into chart at runtime.
procedure
TForm1.Button2Click(Sender: TObject);
Var
X,
Y : Variant;
begin
X
:= Edit1.Text;
Y
:= Edit2.Text;
Chart1.Series[0].AddXY(X,
Y, '', clTeeColor);
end;
This
one clears data series from chart.
procedure
TForm1.Button1Click(Sender: TObject);
begin
Chart1.Series[0].Clear;
end;
DOWNLOAD this example
Click
here
to download this complete example for Delphi 6. (File size 7KB)

|