Page 1 of 1

TPieSeries problem with OtherSlice

Posted: Thu Mar 25, 2010 3:50 am
by 10548297
I am finding if my series has a lot (i.e. ~100) of data points and I use the "OtherSlice" property to reduce the number of slices it shrinks the entire chart. Everything else is working (i.e. data points not making the otherslice value are placed in the "other" slice).

Here is an example where I use "OtherSlice" against ~100 data points:
shrinks.JPG
Shrinks File
shrinks.JPG (16.23 KiB) Viewed 3364 times
Here is an example where I aggregate myself, reducing down to 10 points:
ok.JPG
Good Rendering
ok.JPG (23.73 KiB) Viewed 3370 times

Re: TPieSeries problem with OtherSlice

Posted: Fri Mar 26, 2010 3:20 pm
by yeray
Hi mSchenkel,

Could you please send us a simple example project we can run as-is to reproduce the problem here?
The following code tries to draw a chart similar to yours and it seems to be drawn as expected:

Code: Select all

uses series;

procedure TForm1.FormCreate(Sender: TObject);
var pie: TPieSeries;
    i: Integer;
begin
  pie:=Chart1.AddSeries(TPieSeries.Create(self)) as TPieSeries;

  pie.Add(413,'(not set)');
  pie.Add(266,'California');
  pie.Add(327,'England');
  pie.Add(805,'New York');

  for i:=0 to 25 do
    pie.Add(150,IntToStr(i));

  pie.OtherSlice.Value:=200;
  pie.OtherSlice.Style:=poBelowValue;
end;