Ver Mensaje Individual
  #1  
Antiguo 19-04-2011
victor2023 victor2023 is offline
Miembro
 
Registrado: abr 2006
Posts: 22
Reputación: 0
victor2023 Va por buen camino
TFastLine en tiempo de ejecucion

Hola que tal a todos,

Estoy creando series fastline en tiempo de ejecucion pero no me dibuja nada en el tchart :S

ya he hecho varias pruebas pero nomas no

con este codigo es con el que he estado trabajando de prueba para posteriormente agregar los valores y los labels con un sp

de antemano gracias.

Código Delphi [-]
 procedure TForm1.Button1Click(Sender: TObject);
var i : integer;
    serieA : TFastLineSeries;
    cuantos,y : integer;
    lista : tstringlist;
begin

cuantos := 0;

lista := tstringlist.Create;
lista.Clear;

  for i := 1 to 5 do
      begin
        serieA             := TFastLineSeries.Create(self);
        serieA.ParentChart := Chart1;
        serieA.Marks.Visible := false;
        chart1.AddSeries(serieA);
        lista.Add(inttostr(i));
      end;

for y := 0 to lista.Count - 1 do
    begin
      cuantos := cuantos + 3;
      if cuantos >= 6 then
         cuantos := 3;
      chart1.Series[y].Add(cuantos,'label '+inttostr(y));
    end;

end;
Responder Con Cita