Start angle of donut series.

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
gerhardsachs
Newbie
Newbie
Posts: 8
Joined: Mon May 10, 2010 12:00 am

Start angle of donut series.

Post by gerhardsachs » Sat Aug 21, 2010 10:24 am

In a donut series with 12 equally sized segments, I have to ensure that segment 1..12 is exactly located at clock positions 1..12.
It is easy to rotate the series to achieve correct positioning.
But I have to use different rotation angles on the official TeeChart 2010 release and the latest sources that were sent as bugfix.

The chart would be totally confusing to the customer, if I could not guarantee the correct position.
Currently everything is ok, but what about future releases, do I have to adjust the rotation angle ?

I would prefer to have a well defined and constant start position for the first segment.

Regards
Gerhard Sachs

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Start angle of donut series.

Post by Yeray » Mon Aug 23, 2010 12:33 pm

Hi Gerhard,

I'm not sure to reproduce it. I'm running the following code in the latest published version and in the actual sources and I'm getting the same result.

Code: Select all

uses TeeDonut;

procedure TForm1.FormCreate(Sender: TObject);
var Series1: TDonutSeries;
begin
  Series1:=Chart1.AddSeries(TDonutSeries) as TDonutSeries;

  Series1.Add(20);
  Series1.Add(10);
  Series1.Add(20);
  Series1.Add(25);
  Series1.Add(25);

  Series1.Shadow.Visible:=false;

  Series1.RotationAngle:=90;
end;
Donut.png
Donut.png (6.02 KiB) Viewed 2587 times
Could you please try to modify the code above so we can see the difference here? Or, please, arrange a simple example project where we can see it.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply