Custom Marks for Pie/Donut Series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
msr
Newbie
Newbie
Posts: 8
Joined: Tue May 17, 2005 4:00 am

Custom Marks for Pie/Donut Series

Post by msr » Tue Sep 26, 2006 9:07 pm

I would like to be able to place the marks for a pie/donut chart inside the slices. I cannot find a way to detect the position of an individual slice that would allow me to place a custom mark at that location. Functions such as CalcXPos(ValueIndex) return the origin of the pie chart rather than the position of the specified slice. I've had little problem customizing mark position for other types of series (e.g., arrow or line) (well, after a little trial and error, anyway), but there does not seem to be a way to get individual slice locations. Any suggestions would be appreciated.

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

Post by Narcís » Wed Sep 27, 2006 8:02 am

Hi msr,

An easy way to have the marks inside the pie slices is using negative marks arrow length:

Code: Select all

  Series1.Marks.Arrow.Visible:=false;
  Series1.Marks.ArrowLength:=-50;
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

msr
Newbie
Newbie
Posts: 8
Joined: Tue May 17, 2005 4:00 am

Post by msr » Wed Sep 27, 2006 5:46 pm

That never even occurred to me. What a great idea. Thanks, I'll give it a try.

Post Reply