I'm having trouble passing data to an itemRenderer (which is a BarChart). Essentially what I want to do is have a DataGrid with a few columns and a chart representing three colors (green, yellow nad red) as BarSeries components. Normally passing data in to itemRenders works for me this way:
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var myData:ArrayCollection = new ArrayCollection([{colors: {green:80, yellow:20, red:0}}]); ]]> </mx:Script> <mx:DataGrid dataProvider="{myData}"> <mx:columns> <mx:DataGridColumn dataField="colors"> <mx:itemRenderer> <mx:Component> <mx:BarChart dataProvider="{data.colors}"> <mx:series> <mx:BarSeries xField="green" /> <mx:BarSeries xField="yellow" /> <mx:BarSeries xField="red" /> </mx:series> </mx:BarChart> </mx:Component> </mx:itemRenderer> </mx:DataGridColumn> </mx:columns> </mx:DataGrid> </mx:Application> ------------------------ Yahoo! Groups Sponsor --------------------~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/

