What if you concatenated the quarter arrays together and then did something like

xField: year

yField: revenue

 

and then your categoryField can be quarter?

 

Sorry, not a chart expert here.

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola
Sent: Wednesday, June 15, 2005 8:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Charting

 

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

Reply via email to