Creating a "ring" inside a polar plot

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Steve Chamberlain
Newbie
Newbie
Posts: 15
Joined: Mon Nov 20, 2006 12:00 am
Location: The Netherlands
Contact:

Creating a "ring" inside a polar plot

Post by Steve Chamberlain » Mon Dec 11, 2006 4:20 pm

Hi,

I need to draw a circle (thick black line) within a polar plot where the diameter of the circle is a point on the left axis. Is there an easy way to do this? I checked out the "tools" options in the TChart editor, but couldn't find anything there. I also thought about setting up a series and then plotting the points to make a circle, but then when the lines join up they will not be curved - unless this is also possible?

(See picture below)

Many thanks,

Stephen Chamberlain.

Image

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

Post by Narcís » Mon Dec 11, 2006 4:27 pm

Hi Stephen,

This can be easily achieved using 2 polar series like this:

Code: Select all

procedure TForm9.FormCreate(Sender: TObject);
var i: Integer;
begin
  Series1.FillSampleValues();

  With Series2 do
  begin
    Circled := true;
    Pointer.Visible:=false;
    Pen.Width:=3;
    Color:=clBlack;

    for i := 0 to 359 do
      AddPolar(i,500);
  end;

end;
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

Steve Chamberlain
Newbie
Newbie
Posts: 15
Joined: Mon Nov 20, 2006 12:00 am
Location: The Netherlands
Contact:

Post by Steve Chamberlain » Mon Dec 11, 2006 4:42 pm

Excellent! Thank you very much!

Post Reply