TPolarSeries strange behaviour

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Badger101
Newbie
Newbie
Posts: 7
Joined: Fri Nov 15, 2002 12:00 am

TPolarSeries strange behaviour

Post by Badger101 » Thu Nov 29, 2012 9:49 am

Good day,

I am trying to use a TPolarSeries and I get strange results.

For example, the following code, which should plot a circle, plots only a dot in the middle of the plot.

Series1->GetVertAxis->Automatic = 1;
Series1->GetHorizAxis->Automatic = 1;
Series1->Circled = 1;
for(int i = 0; i < 360; i+=5)
Series1->AddPolar(i, 10, "", clRed);

if I pan by pressing the right mouse button when I drag the plot, then I can get it to display the circle.

Please advise, or provide example code which works.

thanks in advance

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

Re: TPolarSeries strange behaviour

Post by Yeray » Thu Nov 29, 2012 4:44 pm

Hi,

This is because the axes are automatic and the values are all the same (10). When the chart internally calculates the minimum and maximum to fit these values, it considers minimum and maximum to be 10.
Set them to another range including 10 and the values will be shown. Ie:

Code: Select all

  Series1->GetVertAxis->SetMinMax(0,20);
  Series1->GetHorizAxis->SetMinMax(0,20);
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