Hallo community,
hoffe ich habe das Thema jetzt richtig zugeordnet

.
Also zu meinem Problem:
Ich würde gerne mit den TeeChart Komponenten ein Programm entwerfen mit dem ich
dynamisch Series erstellen kann. Ich habe es so versucht aber das hat leider nicht funktioniert:
Code:
cht1.Series[i].Create(TChart);
cht1.Series[i].Add(StrToFloat(StringGrid1.Cells[1, 5]), '1', clTeeColor);
cht1.Series[i].Add(StrToFloat(StringGrid1.Cells[2, 5]), '2', clTeeColor);
cht1.Series[i].Add(StrToFloat(StringGrid1.Cells[3, 5]), 'P1', clTeeColor);
cht1.Series[i].Add(StrToFloat(StringGrid1.Cells[4, 5]), '3', clTeeColor);
cht1.Series[i].Add(StrToFloat(StringGrid1.Cells[5, 5]), '4', clTeeColor);
cht1.Series[i].Add(StrToFloat(StringGrid1.Cells[6, 5]), 'P2', clTeeColor);
cht1.Series[i].Add(StrToFloat(StringGrid1.Cells[7, 5]), '5', clTeeColor);
Resultat eine Zugriffsverletzung

Habt ihr eine Idee wie ich das Lösen kann?
Vielen Dank im Vorraus!
PS: Vor dem Code ist natürlich eine For Schleife die mit der Variable "I" arbeitet.