Page 1 of 1

Series Groups Don't Save

Posted: Thu Apr 01, 2004 3:17 am
by 9336033
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?

Posted: Wed Apr 14, 2004 12:02 pm
by Marjan
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:

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;
It worked just fine i.e. after chart was loaded, the series group indices were identical to the ones I defined at design time.