Jump to content
uniGUI Discussion Forums
Sign in to follow this  
cristian

add tunibarserie run time

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

Share this post


Link to post
Share on other sites
5 minutes ago, cristian said:

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

Hi,

Sorry, can you explain a little more?

Do you want to add a new series to the chart?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×