Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 526 - Zero values in TPieSeries draw strange slices
Summary: Zero values in TPieSeries draw strange slices
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 131119
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-03 04:27 EST by yeray alonso
Modified: 2014-01-08 10:13 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2014-01-03 04:27:24 EST
Zero values in TPieSeries draw strange slices.
Didn't happen in v2013.08.130521

uses Series;

var Chart1: TChart;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1:=TChart.Create(Self);
  Chart1.Parent:=Self;

  Chart1.AddSeries(TPieSeries).FillSampleValues;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  Chart1[0].YValue[3]:=0;
end;
Comment 1 david berneda 2014-01-08 10:13:59 EST
Fixed.
TeCanvas TPieDrawer.DoDrawSides corrected to account for 0 size slices.