Yeah, custom label renderers was considered for 2.0, but got pulled from the schedule at some point.  I'll make a note of your vote though ;)
 
Even with them though, your approach is more performant.  Putting a filter on the entire set of labels at once is better than labels on each individual label.
 
 
You should be able to just set the fontSize style of the pieseries.
 
Ely.
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Pan Troglodytes
Sent: Thursday, September 28, 2006 12:06 PM
To: [email protected]
Subject: Re: [flexcoders] custom outlined pie labels

Thanks Ely.  Would be nice in a future release to more easily fiddle with the series labels.

On a related note, how would you go about changing the font size for the pie labels?  I've tried a lot of different things, none of which worked.

On 9/28/06, Ely Greenfield <[EMAIL PROTECTED]com> wrote:
 
 
 
Can't think of any reason why that would be problematic. The PieSeries currently always creates a label layer, and never recreates it, so at least for now that should be Copacetic.
 
Ely.
 


From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Pan Troglodytes
Sent: Thursday, September 28, 2006 9:29 AM
To: flexcoders
Subject: [flexcoders] custom outlined pie labels

I'm making an outline around my pie labels using the following code for the pie chart:

public function creationComplete():void
{
  UIComponent(labelElements[0]).filters =
    [new DropShadowFilter(1, 0, 0xFFFFFF, 1, 0, 0),
    new DropShadowFilter(1, 90, 0xFFFFFF, 1, 0, 0),
    new DropShadowFilter(1, 180, 0xFFFFFF, 1, 0, 0),
    new DropShadowFilter(1, 270, 0xFFFFFF, 1, 0, 0)];
}

Is there anything about this that's not kosher?  I suppose I could put a check in for labelElements.length != 0, but this isn't really for general purpose use.  Are there any situations in a pie chart where this could blow up?

--
Jason




--
Jason

__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to