How I can create series in a chart in runtime?

I have an empty TfrxChartView and want to add series to it in runtime. How I make?

I am creating serie in the following way:
     n := 0;
     while  ...  do
     begin
       Inc(n);
       Serie: = TLineSeries.Create (Chart1.Chart);
       Serie.Active := True;                                                   
       Serie.Title := TitleName;
       .  .  .
       .  .  .
       Chart1.SeriesData[n-1].XSource := XValues;  
       Chart1.SeriesData[n-1].YSource := YValues;
     end;

But when I execute the report the chat is blank.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.