Series Groups Don't Save

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Golli
Newbie
Newbie
Posts: 4
Joined: Mon Mar 08, 2004 5:00 am
Location: USA

Series Groups Don't Save

Post by Golli » Thu Apr 01, 2004 3:17 am

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?

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Wed Apr 14, 2004 12:02 pm

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.
Marjan Slatinek,
http://www.steema.com

Post Reply