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 2031

Summary: Export a Donut to pdf in 2D shows only the shadow
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: ExportAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: ---    
Version: 24.180321   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=16901
Chart Series: Donut Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2018-04-26 03:25:12 EDT
It works fine with a TPieSeries, but not with a TDonutSeries:

uses TeePDFCanvas, TeeDonut;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Title.Caption:='Donut';

  with Chart1.AddSeries(TDonutSeries) as TDonutSeries do
  begin
    FillSampleValues(4);
    Marks.Hide;
  end;

  Chart1.View3D:=False;

  TeeSaveToPDFFile(Chart1, 'C:\tmp\Chart1.pdf');
end;

A workaround is to set the chart to 3D and simulate a 2D setting Chart3DPercent to 0 and Elevation to 360:

  Chart1.Chart3DPercent:=0;
  Chart1.Aspect.Elevation:=360;