Page 1 of 1

Start angle of donut series.

Posted: Sat Aug 21, 2010 10:24 am
by 16556124
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

Re: Start angle of donut series.

Posted: Mon Aug 23, 2010 12:33 pm
by yeray
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 2583 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.