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 - Export a Donut to pdf in 2D shows only the shadow
Summary: Export a Donut to pdf in 2D shows only the shadow
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Export (show other bugs)
Version: 24.180321
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-26 03:25 EDT by yeray alonso
Modified: 2018-04-26 03:25 EDT (History)
0 users

See Also:
Chart Series: Donut
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 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;