help with polar charts

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
wdsr
Newbie
Newbie
Posts: 7
Joined: Mon Jan 24, 2005 5:00 am

help with polar charts

Post by wdsr » Tue Jan 25, 2005 4:03 pm

I'm updating our existing plotting routines (homebuilt) to TeeChart v7.02. and am having difficulty setting up a polar chart which I want to use to plot azimuth and elevation angles of satellites.

The azimuth is plotted as the angle and runs from 0 - 360 degrees, clockwise with 0/360 at the top of the chart.

The elevation is plotted as the radius and runs from 0 - 90. I want 0 to be the outermost radius and 90 to be inner radius (ie at the centre of the graph).

Although I can set up the axes to show what I want, the data doesn't plot where I expect it to.

I would be grateful if someone can tell me what settings are required.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jan 25, 2005 5:03 pm

Hi wdsr,

Are you using AddPolar method to populate the polar series?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

wdsr
Newbie
Newbie
Posts: 7
Joined: Mon Jan 24, 2005 5:00 am

Post by wdsr » Tue Jan 25, 2005 5:53 pm

Narcis

I'm not do anything through code but via the chart editor for the moment. I think I need an explanation on how the polar chart works.

For instance, I don't understand how to set the radial axis from 0 (outer) to 90 (inner). If can invert the right and bottom axes, the labels are inverted, but not for the left/top. I want to be able to set up a radial axis as one complete (diameter) line that will be labelled something like "0, 30, 60 , 90, 60, 30 , 0" from the outer circle to the centre point to the outer circle. I don't care if it's from top to bottom, right to left, or both.

Many thanks

William

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Wed Jan 26, 2005 8:34 am

Hi.

The problem is current polar series does not support inverted radius values. The reason for this is in the TCustomPolarSeries.DrawAxis methhod where right and bottom axis use series vertical and horizontal axis Inverted property while left and top axis do not (left and top axis inverted property is internally set to true so labels are drawn in opposite direction).
The easiest solution is to change TeePolar.pas unit, the TCustomPolarSeries.DrawAxis implementation so that left and top axis will be drawn in opposite direction as right and bottom axis). I'll add this to our to-do list for next maintenance release.
In the meantime another workaround is to manually invert axis labels in TChart OnGetAxisLabel event and do the same with radius value. A bit complicated, but it should work fine.
Marjan Slatinek,
http://www.steema.com

wdsr
Newbie
Newbie
Posts: 7
Joined: Mon Jan 24, 2005 5:00 am

Post by wdsr » Wed Jan 26, 2005 9:28 am

Unfortuneatly, I haven't got the Teechart source, so I'd be grateful if you could add this to your next maintenance release.

For now, I'll work with the events and label the axes manually.

Thanks for your prompt replies

William

Post Reply