Great thanks! --- In [email protected], Jeff Tapper <[EMAIL PROTECTED]> wrote: > > Format the incoming data into an ArrayCollection of an array of objects, > and set that array as the dataProvider of the chart. Something like this > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" > creationComplete="initApp()"> > <mx:Script> > <![CDATA[ > import mx.collections.ArrayCollection; > [Bindable] > public var chartData:ArrayCollection; > private function initApp(){ > var a:Array = new Array(); > var o:Object = new Object(); > o.name="firstValue"; > o.value=150.0; > a.push(o); > o= new Object(); > o.name="secondValue"; > o.value=3670.27001953125; > a.push(o); > chartData = new ArrayCollection(a); > } > ]]> > </mx:Script> > <mx:PieChart id="chart" width="100%" height="100%" dataProvider="{chartData}"> > <mx:series> > <mx:Array> > <mx:PieSeries labelPosition="insideWithCallout" field="value"/> > </mx:Array> > </mx:series> > </mx:PieChart> > </mx:Application> > > At 11:38 AM 12/1/2005, you wrote: > >I have a returned VO from a remote Object call which contains these > >values: > > > >firstValue = 150.0 > >secondValue = 3670.27001953125 > > > >Ok, I want to put this into a pie Chart, how do I do it? > > > >The VO is called myRatio. > > > > > >Thanks in advance. > > > >Iain > > > > > > > > > > > > > >-- > >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 > > > > Visit your group "flexcoders" on the web. > > > > To unsubscribe from this group, send an email to: > > [EMAIL PROTECTED] > > > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. >
------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/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/

