Jump to content

add tunibarserie run time


Vision

Recommended Posts

hi 

I tried this but not work

 

nserie := 2;

  SetLength(Serie, nserie);

  Serie[0]      := TUniBarSeries.Create(self);
  Serie[0].Name := 'serie0';
  Serie[0].Parent   := UniChart1;

  Serie[1]      := TUniBarSeries.Create(self);
  Serie[1].Name := 'serie1';
  Serie[1].Parent   := UniChart1;

  SetLength(dummy, 10);
  for i := 0 to 10 do
  begin
    dummy[i] := Random(100);
  end;

  for i := 0 to 10 do
  begin
    Serie[0].Add(dummy[i], IntToStr(i))
  end;

Can anyone help me?

I need to change on run time the number of bar chart in a chart

tnks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...