Page 1 of 1

Creating a "ring" inside a polar plot

Posted: Mon Dec 11, 2006 4:20 pm
by 9243129
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

Posted: Mon Dec 11, 2006 4:27 pm
by narcis
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;

Posted: Mon Dec 11, 2006 4:42 pm
by 9243129
Excellent! Thank you very much!