Page 1 of 1

Pies Series; exploding a slice

Posted: Tue Feb 15, 2005 2:19 pm
by 9340685
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?

Posted: Tue Feb 15, 2005 3:34 pm
by narcis
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;