Page 1 of 1

How to draw a circle ring and a arc segment?

Posted: Mon Mar 01, 2010 8:00 am
by 9529132
I don't know if I am using the correct phrases, but here are what I want to plot.

1) Circle ring: the area in middle of two circles with radius r1 and r2 and fill it up with some color.
2) arc segment: a fraction of the circle ring from angle a1 to a2, which consists of 4 lines. One arc with radius of r1, one arc with radius r2 and the two lines connecting the two arcs.

For example, r1=5cm and r2 = 10cm, the circle ring will be the area between the two circle edges, and a arc segment could be from 30 to 60 degrees of the circle ring.

So how to draw these two items? There is no shape series for them.

Re: How to draw a circle ring and a arc segment?

Posted: Mon Mar 01, 2010 4:37 pm
by yeray
Hi David,

I'm afraid that there is no TeeChart function right now to do this automatically. The only way I can think right now would be drawing a custom polygon with TeeChart's Canvas.Polygon method but you should calculate all the ring coordinates manually.

Re: How to draw a circle ring and a arc segment?

Posted: Tue Mar 02, 2010 1:27 am
by 9529132
Got it. Thanks.