Advertisement
Advertisement
| 03.12.2008 at 10:04AM PDT, ID: 23235830 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: |
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var expensesAC:ArrayCollection = new ArrayCollection( [
{x: 2000, y: 1500},
{x: 1000, y: 200},
{x: 1500, y: 500} ]);
]]>
</mx:Script>
<mx:Panel title="PlotChart Control Example" height="100%" width="100%">
<mx:PlotChart id="plot" height="100%" width="100%"
paddingLeft="5" paddingRight="5"
showDataTips="true" dataProvider="{expensesAC}">
<mx:series>
<mx:PlotSeries xField="x" yField="y" displayName="x vs y"/>
</mx:series>
</mx:PlotChart>
<mx:Legend dataProvider="{plot}"/>
</mx:Panel>
</mx:Application>
|