Add chat series via script
Hello,
I can't find a way to add multiple series on a chart from the code. Is it possible? Thank you.
Jimmy
I can't find a way to add multiple series on a chart from the code. Is it possible? Thank you.
Jimmy
Comments
procedure TForm1.Button1Click(Sender: TObject);
var
Chart:TfrxChartView;
begin
frxreport1.LoadFromFile('base.fr3',true);
//Chart := frxReport1.FindObject('Chart1') as TfrxChartView;
Chart := frxReport1.FindObject('Chart1') as TfrxChartView;
Chart.AddSeries(csline);
with Chart.SeriesData[Chart.SeriesData.Count - 1] do
begin
DataType := dtFixedData;
XSource := 'Jan;Feb;Mar;Apr';
YSource := '31;28;31;30';
end;
frxreport1.DesignReport;
end;