TPieSeries problem with OtherSlice

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
mSchenkel
Newbie
Newbie
Posts: 8
Joined: Fri Feb 08, 2008 12:00 am

TPieSeries problem with OtherSlice

Post by mSchenkel » Thu Mar 25, 2010 3:50 am

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 3365 times
Here is an example where I aggregate myself, reducing down to 10 points:
ok.JPG
Good Rendering
ok.JPG (23.73 KiB) Viewed 3371 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TPieSeries problem with OtherSlice

Post by Yeray » Fri Mar 26, 2010 3:20 pm

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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply