Page 1 of 1

Pie Chart containing zero value slices corrupts the display

Posted: Fri Feb 21, 2014 9:09 am
by 16463768
Hello.

Am running 2013 Pro VCL. (delphi xe5)

Can replicate this by simply dropping a TDBChart component on the form, and use the Chart Editor.
Select 'Data', and then change some of the values to zero - you will see the pie (3D) display is corrupt (edges).


If I could just add a legend for the zero value without drawing the empty slice that would be fine.

This behavior only happends on 2013 - delphi xe5 teechart standard is fine.

Re: Pie Chart containing zero value slices corrupts the display

Posted: Fri Feb 21, 2014 10:35 am
by narcis
Hi arabica,

I'm not able to reproduce the issue here either at design-time or run-time using this code:

Code: Select all

uses VCLTee.Series;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.AddSeries(TPieSeries.Create(Self)).FillSampleValues;
  Chart1[0].YValues[4]:=0;
end;
If the code snippet above reproduces the problem at your end then you can expect this being fixed in the next maintenance release which will be probably published next week.