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

<*> 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