Hallo und

hier im Delphi-Forum.de!
Hier mal ein Beispiel von
Andreas Rumsch welches ich mal vor langer langer Zeit ausprobiert habe:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45:
| uses Series;
procedure TForm1.Button1Click(Sender: TObject); var i, j, kum: Integer; s, t: TLineSeries; begin with Chart1 do begin Title.Text.Clear; Title.Text.Add('Ein Titel für den Chart');
s := TLineSeries.Create(nil); s.Clear; s.Title := 'Chart Linie 1'; s.ParentChart := Chart1; s.XValues.DateTime := True;
t := TLineSeries.Create(nil); t.Clear; t.Title := s.Title + ' kum'; t.ParentChart := Chart1; t.XValues.DateTime := True; t.VertAxis := aRightAxis;
for i := 0 to 364 do begin j := Random(100); s.AddXY(Date + i, j); kum := kum + j; t.AddXY(Date + i, kum); end; end; end; |
Gruß
Tino