TpolarSeries and graduation

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

TpolarSeries and graduation

Post by Calou » Tue Jun 23, 2009 3:31 pm

Hello,

On a TPolarSeries is it possible to change the place of the angle 0° and to increment the angle in clock wise instead of anticlockwise?

Thanks for help

Regards

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

Re: TpolarSeries and graduation

Post by Yeray » Thu Jun 25, 2009 7:31 am

Hi Calou,

If you use AddPolar method to populate your series, you could specify your angles, for example:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var alfa: integer;
begin
  alfa := 45;

  Series1.AddPolar(0-alfa,100);
  Series1.AddPolar(-45-alfa,200);
  Series1.AddPolar(-90-alfa,150);
end;
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

Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

Re: TpolarSeries and graduation

Post by Calou » Thu Jun 25, 2009 10:07 am

Hello here is my code with a TRoseSeries
Series1.AddXY(0,20);
Series1.AddXY(30,20);
Series1.AddXY(30,0);
Series1.AddXY(30,40);
Series1.AddXY(60,40);
Series1.AddXY(60,0);
It works good
Now if i do the code below the draw is not correct (i want the same that above but in clockwise)
Series1.AddXY(0,20);
Series1.AddXY(-30,20);
Series1.AddXY(-30,0);
Series1.AddXY(-30,40);
Series1.AddXY(-60,40);
Series1.AddXY(-60,0);

Thanks for help

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

Re: TpolarSeries and graduation

Post by Yeray » Thu Jun 25, 2009 11:53 am

Hi Calou,

Try disabling the X order default:

Code: Select all

Series1.XValues.Order := loNone;
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

Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

Re: TpolarSeries and graduation

Post by Calou » Thu Jun 25, 2009 1:10 pm

Thank you, it works good,

I have an other question. On a Tpolar how could i do to begin the graduation 0° at top instead of on the right?

Thanks

Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

Re: TpolarSeries and graduation

Post by Calou » Thu Jun 25, 2009 1:34 pm

I find the solution with property rotation

Many thanks for help

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

Re: TpolarSeries and graduation

Post by Yeray » Thu Jun 25, 2009 3:33 pm

Hi Calou,

I'm glad to hear that!
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