How to draw a circle ring and a arc segment?

TeeChart for ActiveX, COM and ASP
Post Reply
David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

How to draw a circle ring and a arc segment?

Post by David » Mon Mar 01, 2010 8:00 am

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.

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

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

Post by Yeray » Mon Mar 01, 2010 4:37 pm

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.
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

David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

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

Post by David » Tue Mar 02, 2010 1:27 am

Got it. Thanks.

Post Reply