Page 1 of 1

Marks.callout.distance and label clipping

Posted: Mon Nov 03, 2008 5:29 am
by 5887342
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

Posted: Mon Nov 03, 2008 10:24 am
by narcis
Hi Richard,

You could try using Series1.Marks.ArrowLength instead.

Posted: Mon Nov 03, 2008 3:47 pm
by 5887342
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

Posted: Mon Nov 03, 2008 7:58 pm
by 5887342
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

Posted: Tue Nov 04, 2008 9:36 am
by narcis
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.

Posted: Tue Nov 04, 2008 3:29 pm
by 5887342
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

Posted: Tue Nov 04, 2008 3:50 pm
by narcis
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:.