Pie Chart containing zero value slices corrupts the display

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
arabica
Newbie
Newbie
Posts: 2
Joined: Fri Oct 26, 2012 12:00 am

Pie Chart containing zero value slices corrupts the display

Post by arabica » Fri Feb 21, 2014 9:09 am

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.
Attachments
teecharterror.png
teecharterror.png (35.98 KiB) Viewed 3199 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Pie Chart containing zero value slices corrupts the display

Post by Narcís » Fri Feb 21, 2014 10:35 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply