
Код AS3:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
applicationComplete="init()">
<mx:Script>
<![CDATA[
private function init():void
{
httpRSS.send();
}
]]>
</mx:Script>
<mx:HTTPService id="httpRSS" url="assets/flasher_data.xml" resultFormat="e4x" />
<mx:Panel title="Column Chart">
<mx:ColumnChart id="myChart" dataProvider="{httpRSS.lastResult.Month}" showDataTips="true">
<mx:horizontalAxis>
<mx:CategoryAxis dataProvider="{myChart.dataProvider}" categoryField="@MonthId"/>
</mx:horizontalAxis>
<mx:series>
<mx:ColumnSeries
xField="@MonthId"
yField="Besucher"
displayName="Besucher"
/>
</mx:series>
</mx:ColumnChart>
<mx:Legend dataProvider="{myChart}"/>
</mx:Panel>
</mx:Application>