<mx:Repeater id="list" dataProvider="{myHomePageAC}">
<mx:GridRow width="778" paddingLeft="4">
<mx:GridItem>
<mx:RadioButton
label="{list.currentItem.Name}"/>
</mx:GridItem>
<mx:GridItem >
<mx:LinkButton label="{list.currentItem.Amount[0]}"
textAlign="center" />
</mx:GridItem>
.............
I Want to include a bar chart here, with the xml data from the
repeater. Can I do this ?
I have tried.
<mx:BarChart id="bar" paddingLeft="5" paddingRight="5"
showDataTips="true">
<mx:verticalAxis>
<mx:CategoryAxis categoryField="{list.currentItem.Chart.Data}"/>
</mx:verticalAxis>
<mx:series>
<mx:Array>
<mx:BarSeries yField="{list.currentItem.Chart.Data.Value}"
xField="{list.currentItem.Chart.Data.Value}" displayName="Test"/>
</mx:Array>
</mx:series>
</mx:BarChart>
But get an error (Implicit coercion of a value of type
mx.charts:CategoryAxis to an unrelated type Array.)
..............
</mx:GridRow>
</mx:Repeater>
Thanks for any help.
--
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.

