Rich -- the charts will work fine on objects instead of xml, but they
are written to work only off of a flat array of objects. As you have
discovered, there is no way to point a particular series to look down
into a nested reference in the dataprovider for its data. 

This is a great feature request, so if you want to submit it to the wish
list that would be great. In the meantime, you'll have to masssage your
data into a flat list, either on the client or the server, before
displaying it in the chart.

Ely.


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Rich Tretola
Sent: Thursday, June 16, 2005 5:42 AM
To: [email protected]
Subject: [flexcoders] Re: Charting
Importance: High

Has anyone done any charting with complex objects or are all using only
basic xml for charting data ?

Rich

On 6/15/05, Rich Tretola <[EMAIL PROTECTED]> wrote:
> All of the macromedia examples are using xml for their datasource and 
> then hard coding the node name into the column series.  Example:
> 
> XML:
> <data>
> 
>     <result month="Jan-04" average="203443">
>         <apple>224254</apple>
>         <orange>221819</orange>
>         <banana>164256</banana>
>     </result>
> 
>     <result month="Feb-04" average="180365">
>         <apple>191012</apple>
>         <orange>217965</orange>
>         <banana>132120</banana>
>     </result>
> 
> </data>
> 
> 
> Column Series:
> <mx:series>
>     <mx:Array>
>         <mx:ColumnSeries yField="apple" name="Apple"/>
>         <mx:ColumnSeries yField="orange" name="Orange"/>
>         <mx:ColumnSeries yField="banana" name="Banana"/>
>     </mx:Array>
> </mx:series>
> 
> Is there anyway to use a dataprovider specific to the ColumnSeries 
> Array or wrap the ColumnSeries tag with a repeater ?  I can't seem to 
> get either to work.
> 
> My data consists of an array of year objects with a sub array of 
> quarter objects.
> 
> Object FiscalYear:
>     year:String
>     revenue:Number: 100000
>     Array: quarters
>               Object Quarter:
>                   year:String:
>                   quarter:String
>                   revenue:Number
> 
> I want to have a grouped chart with a grouping for each year that has
> 4 columns representing each quarter.
> 
> Rich
>


 
Yahoo! Groups Links



 




 
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