This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="generateChartData()"> | |
<mx:Script><![CDATA[ | |
import mx.collections.ArrayCollection; | |
[Bindable] | |
public var chartData:ArrayCollection; | |
public function generateChartData():void | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function doArr(e:ResultEvent):void{ | |
var res:Object = e.result.serverInfo; | |
for each(var arr:Array in res.initialData){ | |
var obj:Object = new Object(); | |
for (var i:int; i < res.columnNames.length; i++){ | |
obj[res.columnNames[i]] = res.initialData[i]; | |
} | |
arrProvider.addItem(obj); | |
} | |
} |