Jump to content

Create series in TUniChart at runtime


JohnySK

Recommended Posts

Hello,

Is there some way which is working to create/delete series in Tunichart at runtime. 

For example I want to add to first chart 1 - xx series depend of stations for example.

Series looks that it is created but never display stay blank.

I try this: but nothing happen. Thx for feedback. 

Quote

 with Chart1.SeriesList do
    for k := 0 to (nCount - 1) do
    begin
      Insert(k, TUniLineSeries.Create(Chart1));
      TUniLineSeries(Items[k]).Parent := Chart1;
      TUniLineSeries(Items[k]).Title := IntToStr(k);
    end;

 

image.thumb.png.8247e446c31d47b1b697910061d990e7.png

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...