Check out the DropShadowFilter class; you can modify its settings on the
pie's series. Here's how you might use it:

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
xmlns:flash="flash.filters.*">
        <mx:Script>
        [Bindable]
        public var expenses:Object = [
                {Expense: "Taxes", Amount: 2000},
                {Expense: "Rent", Amount: 1000},
                {Expense: "Food", Amount: 200}
        ];
        </mx:Script>
        <mx:Panel title="Pie Chart">
                <mx:PieChart id="pie" dataProvider="{expenses}"
showDataTips="true">
                        <mx:series>
                                <mx:Array>
                                        <mx:PieSeries field="Amount"
nameField="Expense" labelPosition="callout">
                                                <mx:filters>
        
<flash:DropShadowFilter distance="10" color="0xcccc66" alpha=".5"/>
                                                </mx:filters>

                                        </mx:PieSeries>
                                </mx:Array>
                        </mx:series>
                </mx:PieChart>
                <mx:Legend dataProvider="{pie}"/>
        </mx:Panel>
</mx:Application>



To turn it off, just set the filters array to empty:

<mx:filters>
        <mx:Array/>
</mx:filters>                                   

Or set distance to 0 or alpha to 0...

hth,

matt horn
flex docs
 

> -----Original Message-----
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Tom Fitzpatrick
> Sent: Thursday, July 27, 2006 4:56 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Pie chart dropshadow
> 
> Is there a way to control the dropshadow on a pie chart? 
> Can't find this anywhere.
> 
> The ability to turn it on and off would be good. Control over 
> distance, color, and direction would be even better.
> 
> - Tom
> 
> 
> 
>  
> 


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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to