Pies Series; exploding a slice

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bmariani
Newbie
Newbie
Posts: 3
Joined: Fri Jan 21, 2005 5:00 am
Location: CT

Pies Series; exploding a slice

Post by bmariani » Tue Feb 15, 2005 2:19 pm

In the chart editor I can expode the slice for the largest slice only. since this is the most prominent slice, it would never be the one a user explodes. In the interactive mode, the mouse click can explode a slice. What I need to do is select a slice to explode and save this information so when the chart is viewed again, this slice is always exploded. Can this be done?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Feb 15, 2005 3:34 pm

Hi bmariani,

You can select the slice to explode using:

Code: Select all

Series1.ExplodedSlice[8];
Using the code below and including units TeeStore and TeeEDITPro will save and load the chart with the exploded slice.

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);begin
  SaveChartToFile(Chart1,'c:\myChart.tee',True);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  LoadChartfromFile(TCustomChart(Chart1),'c:\myChart.tee');
end;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply