A bar chart with a vertical axis
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="white"> <mx:XML id="salesDataXML"> <salesdata> <all> <data interval="Q1" pc="2" pcRevenue="2.3" mac="2" macRevenue="0.10"/> <data interval="Q2" pc="5" pcRevenue="7.8" mac="3" macRevenue="0.20" /> <data interval="Q3" pc="4" pcRevenue="6.9" mac="7" macRevenue="0.40"/> <data interval="Q4" pc="1" pcRevenue="1.8" mac="1" macRevenue="1.10"/> </all> </salesdata> </mx:XML> <mx:XMLListCollection source="{salesDataXML.all.data}" id="salesData" /> <mx:BarChart id="salesChart" dataProvider="{salesData}" height="100%" width="100%"> <mx:verticalAxis> <mx:CategoryAxis categoryField="@interval" /> </mx:verticalAxis> <mx:series> <mx:BarSeries xField="@pc" displayName="Ferrari Count" /> <mx:BarSeries xField="@mac" displayName="Porsche Count" /> </mx:series> </mx:BarChart> </mx:Application>