unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,IniFiles, ExtCtrls, TeeProcs, TeEngine, Chart, Series;
type
TForm1 =
class(TForm)
Chart1: TChart;
procedure FormCreate(Sender: TObject);
procedure FormShow(Sender: TObject);
private
{ Private-Deklarationen }
MeineListe:TStrings;
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
var i,Zahl:Integer;
begin
meineListe:=TStringList.Create;
for i:=0
to 10
do
begin
Zahl := random(100);
meineListe.Insert(0,IntToStr(Zahl));
end;
end;
procedure TForm1.FormShow(Sender: TObject);
var i:Integer;
MySeries: TLineseries;
begin
MySeries:= TLineseries.Create( Self );
MySeries.ParentChart:= Chart1;
for i:=0
to 10
do
begin
with Chart1.SeriesList[ 0 ]
do
AddXY( i,StrtoInt(meineListe.Strings[i]));
end;
end;
end.