Guys, I got this xml

<data>
<month label="January" vol="12">
  <payorname label="ABD Co." vol="9" /> 
  <payorname label="ABD Comp." vol="3" /> 
</month>
<month label="February" vol="13">
  <payorname label="ABD Co." vol="13" /> 
  </month>
<month label="March" vol="13">
  <payorname label="ABD Co." vol="10" /> 
  <payorname label="ABD Comp." vol="3" /> 
</month>
<month label="April" vol="15">
  <payorname label="ABD Co." vol="15" /> 
</month>
</data>

I need to fill a column chart with all the payornames in the X axis 
and their TOTAL (sum of) volumes on the Y axis.

Payornames get repeated on each month, so I have to add them up for 
all months (i.e. ABD Co total would be 47).

I kinda know how to do this on AS but I have no clue how to "flex-it" 
in my mxml.I used 

dataProvider="{myData.lastResult.data.month.payorname}" 

But i get and error, seems that flex can figure out I want to sum all 
the payorname volumes for all months.

Any help will be welcome!!
-g





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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

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