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 11:06PM
    You should go chart editor and add a series. You can't add series in run-time.
  • edited 11:06PM
    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