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 1760 - Some marks aren't drawn for TPieSeries
Summary: Some marks aren't drawn for TPieSeries
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 20.170306
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-31 03:31 EST by yeray alonso
Modified: 2017-01-31 03:31 EST (History)
0 users

See Also:
Chart Series: Pie
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 2017-01-31 03:31:51 EST
Under some circumstances, some marks may not be drawn.
In the following example, the "Lamps" mark isn't drawn if you draw the chart before setting the OtherSlice.Value (it is drawn if you set it before drawing the chart).

Broken since v2015.14.

uses Chart, Series;

var Chart1: TChart;

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

  Chart1.View3D:=False;

  with Chart1.AddSeries(TPieSeries) as TPieSeries do
  begin
    AddPie(100, 'Cars');
    AddPie(150, 'Phones');
    AddPie(200, 'Tables');
    AddPie(250, 'Monitors');
    AddPie(300, 'Lamps');
    AddPie(350, 'Keyboards');
    AddPie(400, 'Bikes');
    AddPie(450, 'Chairs');

    OtherSlice.Style:=poBelowPercent;

    Chart1.Draw;
    OtherSlice.Value:=10;
  end;
end;