Marks.callout.distance and label clipping

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
JazzMan
Newbie
Newbie
Posts: 14
Joined: Fri Nov 15, 2002 12:00 am

Marks.callout.distance and label clipping

Post by JazzMan » Mon Nov 03, 2008 5:29 am

Well heck... What am I doing wrong? With 3D pie charts (7.12), when I set a label's distance from the chart:

Code: Select all

 Chart1.Series[ iChartNbr ].Marks.callout.distance := iArrowDistance
often the label is clipped, as though the additional space taken up by the positioned label isn't being accounted for. I looked for something like a "ResizeChart" as is done with Legends, but no go.

Help!!!

Thanks in advance,
richard diamond

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 Nov 03, 2008 10:24 am

Hi Richard,

You could try using Series1.Marks.ArrowLength instead.
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

JazzMan
Newbie
Newbie
Posts: 14
Joined: Fri Nov 15, 2002 12:00 am

Post by JazzMan » Mon Nov 03, 2008 3:47 pm

Well hello, Narcís..:)

Yes, thanks, that is the work-around I've been using for some time now:

Code: Select all

Chart1.GetASeries.Marks.ArrowLength := iArrowDistance
so I'm glad to see I wasn't that far off the ... [wait for it, wait for it...] mark... HA!

The issue there, obviously, is I'm unable to provide the effect so easily demonstrated in your Chart Editor where a mark has a certain "Arrow Length", translating into distance from the chart, but combination of the Mark's distance and its length can BOTH be independently controlled from the, for instance, the Circled sub-tab of Marks for Pie Charts, or the tab off a bar chart, where changing the Distance value results in both the label AND the arrow moving as a team.

What's the key to having control over the Distance within the Chart Editor, and no clipping?

Regards from the soon-to-have-no-more-Election-commercials-on-TV,
richard diamond

JazzMan
Newbie
Newbie
Posts: 14
Joined: Fri Nov 15, 2002 12:00 am

Post by JazzMan » Mon Nov 03, 2008 7:58 pm

Narcís,

Let me add to this.

The appeal of setting Marks distance, rather than arrow length, is Mark distance has no impact on the pie chart's size (radius). It doesn't get bigger or smaller, just sits there, as the marks move closer or further from the chart's center.

In contrast, values for ArrowLength have a direct impact on the actual chart's size, increasing or decreasing the pie chart's radius.

Is it 5:00 PM yet? Can I go to a bar?
richard diamond

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

Post by Narcís » Tue Nov 04, 2008 9:36 am

Hi richard,

I'm afraid there's not much to be done here except for manually setting custom marks position. You'll find 2 different examples on this thread.

For avoiding overlapping you could try doing something as what Pep suggested in the TeeChart for .NET forum:

http://www.teechart.net/support/viewtopic.php?t=560
Is it 5:00 PM yet? Can I go to a bar?
Sure but I'm afraid you'll have to go to an after hours now :wink:.

BTW: We don't have the comercials but plenty of elections media coverage too.
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

JazzMan
Newbie
Newbie
Posts: 14
Joined: Fri Nov 15, 2002 12:00 am

Post by JazzMan » Tue Nov 04, 2008 3:29 pm

Narcís,

Okay, let me get this straight. No commercials AND Girona is only a stone's throw away???? That's it. I'M MOVING TO SPAIN! LEAVE THE FRONT PORCH LIGHT ON!!!

Thank you for the thread links, I'll read through them, pick out what I can...:)

Regards,
richard diamond

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

Post by Narcís » Tue Nov 04, 2008 3:50 pm

Hi Richard,

LOL, will do!

IIRC and with any luck we won't have any kind of elections (local, regional, national or european) here for about 2 years. So journalists may miss this stuff :wink:.
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

Post Reply