creating a chart at fastscript runtime

I need to make a chart at runtime in fastscript.

In the
procedure Chart1OnBeforePrint(Sender: TfrxComponent);
Var x: tFrxSeriesItem;
begin
x := Chart1.SeriesData.add;
x.xSource := 'aaa;bbb;ccc';
x.ySource := '1;2;3';
end;

Complies but gives an index(0) out of range error.

If I do tBarSeries.Create(Chart1.Chart); than the show stops as there is no addseries in fastscript.

Documentation is minimal and the faq is empty as is google.

What am I missing..?

Comments

  • edited 6:19AM
    You should go chart editor and add a series. You can't add series in run-time.
  • edited 6:19AM
    looks like this is only due to the missing addseries. If I implement this method in script should it work then? This is really important!

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.