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:
Here is an example where I aggregate myself, reducing down to 10 points:
TPieSeries problem with OtherSlice
Re: TPieSeries problem with OtherSlice
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:
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |