AddSeries method on TfrxChartView not working
I'm using PascalScript and FR4 and I keep getting an access violation when I try to add a line series to my chart dynamically in the script. Here is basically my code:
var
Chart2: TfrxChartView;
LS: TLineSeries;
Chart2 := TfrxChartView.Create(GroupFooter1);
Chart2.SetBounds(10,110,125,125);
LS:=TLineSeries.Create(Chart2);
Chart2.Chart.AddSeries(LS);
I noticed in alot of the online help that it looks like it should just be "Chart2.AddSeries" but I get an error saying AddSeries does not exist. Access violation happens right as I try to add the series to my chart. Does ANYONE have any clue on why AddSeries isn't working for me? Any thoughts are welcome.
Thanks
var
Chart2: TfrxChartView;
LS: TLineSeries;
Chart2 := TfrxChartView.Create(GroupFooter1);
Chart2.SetBounds(10,110,125,125);
LS:=TLineSeries.Create(Chart2);
Chart2.Chart.AddSeries(LS);
I noticed in alot of the online help that it looks like it should just be "Chart2.AddSeries" but I get an error saying AddSeries does not exist. Access violation happens right as I try to add the series to my chart. Does ANYONE have any clue on why AddSeries isn't working for me? Any thoughts are welcome.
Thanks
Comments
but I know Chart.AddSeries works if you call it from Delphi
Perhaps you can use an UserFunction so that the Chart is create at the Delphi level.