0

我有一些数组:

var dataProvider:IList = new ArrayList();
var labelArr:Array = [IT, Business, Doctor, Teacher, Engineer, IT, Business, Doctor, Teacher, Engineer];
var valueArr:Array = [50,46,64,85,98,37,58,48,14,28];

dataArr.addItem() 如何从两个数组到具有类似以下结果数据的 arrayList:

dataProvider = ([
           {data:[
               {label:'IT', value: 50},
               {label:'Business', value: 46},
               {label:'Doctor', value: 64},
               {label:'Teacher', value: 85},
               {label:'Engineer', value: 98} ]},
           {data:[
               {label:'IT', value: 37},
               {label:'Business', value: 58},
               {label:'Doctor', value: 48},
               {label:'Teacher', value: 14},
               {label:'Engineer', value: 28} ]}
           ]);

我想要上面的结果来获取数据数组进行绘制

4

0 回答 0