Series Groups Don't Save
Series Groups Don't Save
I am working with TChart 7 on Delphi 6. It seems like the Series Group information is not saved when the chart is saved to a stream. Any suggestions?
Hi.
Are you sure ? I created three bar series, arrange them in two groups (Stacked property set to mbStacked) and then used the code below to save/load chart series to/from file:
It worked just fine i.e. after chart was loaded, the series group indices were identical to the ones I defined at design time.
Are you sure ? I created three bar series, arrange them in two groups (Stacked property set to mbStacked) and then used the code below to save/load chart series to/from file:
Code: Select all
Uses TeeStore, TeeEditPro;
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.FillSampleValues(5);
Series2.FillSampleValues(5);
Series3.FillSampleValues(5);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
SaveChartToFile(Chart1,'D:\temp\chart.tee',True,False);
LoadChartFromFile(TCustomChart(Chart1),'d:\temp\chart.tee');
Chart1.Repaint;
end;
Marjan Slatinek,
http://www.steema.com
http://www.steema.com