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:
| var i,x,y:integer; s:real; begin x:=81; s:=315/n; Label3.Caption:=FloatToStr(s); with Image1.canvas do begin MoveTo(25,10); LineTo(25,325); LineTo(384,325); TextOut(18,326,'0'); TextOut(375,326,'Tage'); TextOut(30,0,'Niederschlag'); y:=326; i:=5; repeat begin y:=Round(y-5*s); TextOut(10,y,IntToStr(i)); i:=i+5 end; until y<=10; i:=5; repeat begin TextOut(x,326,IntToStr(i)); i:=i+5; x:=x+56; end; until i=35; x:=25; MoveTo(25,325); for i:=1 to 31 do begin y:=Round(315-s*StrToFloat(SGDaten.Cells[2,i])); LineTo(x,y); x:=x+11; end; end; |