> Slightly odd behavior, I'll admit, but easy
> to solve in your code.

Yes.  But if you solve it in YOUR code, then everyone benefits.  ;)

Here are a couple of screenshots:
30pt screenshot 
80pt screenshot 

--- In [email protected], "Ely Greenfield" <[EMAIL PROTECTED]> wrote:
>
>  
>  
>  
>  
> The insideWithCallout logic says
>     1. try and place all the laels inside the pie at the default
> font-size.
>     2. if the labels overlap each other, try scaling them down so they
> won't collide anymore.
>     3. if you have to scale them down below some lower limit, pull them
> out instead and make a callout out of them
>  
> That lower limit is defined by the insideLabelSizeLimit style on
> PieSeries.  It's default value is 9. When you set the PieSeries default
> font-size to 8, then...well, every label is below the lower limit, and
> gets turned into a callout.  Slightly odd behavior, I'll admit, but easy
> to solve in your code.
>  
> When I set the font up to 30pt, I get a pie that behaves more or less as
> expected.  Can you include more detail on what you're seeing?
>  
> Ely.
>  
>
> ________________________________
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Jason
> Sent: Friday, June 16, 2006 10:26 AM
> To: [email protected]
> Subject: [flexcoders] various font/callout weirdness with piechart
>
>
>
> I've noticed a few different kinds of weirdness with pie charts and
> fonts.  Take the example below:
>
> <?xml version="1.0" encoding="utf-8"?>
> <Application xmlns="http://www.adobe.com/2006/mxml" layout="absolute">
>   <Style>
>     PieSeries{
>       font-size: 10pt;
>     }
>   </Style>
>
>     <Panel width="100%" height="100%" title="data based renderers" >
>         <PieChart width="100%" height="100%">
>           <dataProvider>
>             <Array>
>               <Number>29</Number>
>            &nb! sp;  <Number>99</Number>
>               <Number>9999</Number>
>             </Array>
>           </dataProvider>
>           <series>
>             <PieSeries labelPosition="insideWithCallout"/>
>           </series>
>         </PieChart>
>     </Panel>
>   
> </Application>
>
> Resize that around and it looks pretty normal (at least, in 1600x1200).
> The smallest pie piece gets callout and the other two don't.  Now, turn
> the font size down to, say, 8pt.  Notice that this makes the callouts
> happen more often.  You would think ! the smaller font size would mean
> it's more likely to be put on! the pie slice.  And why is the huge pie
> piece getting a callout?
>
> Okay, now for the real weirdness.  Change the font size up to, say,
> 30pt.  Now it puts the bigger labels on the pie.  They won't fit, of
> course, and they wind up getting put in the wrong place.  There should
> certainly be callouts.  Part of it is probably also related to it trying
> to scale them down automatically.
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to