当前位置:编程学习 > JAVA >>

flex中怎么遍历Object类型数据

private var o:Object=
    {"Attributes":[{"Area":"1区","AttriNames":"一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月","Color":"16711680,65280,255,16711935,111111,222222,333333,444444,555555,666666,777777,888888","Result":"853,494,790,866,1024,981,1030,1090,1099,1194,10119,1309","LabelPoint":"000.00000000000000,00.00000000000000"},
{"Area":"2区","AttriNames":"一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月","Color":"16711680,65280,255,16711935,111111,222222,333333,444444,555555,666666,777777,888888","Result":"28,14,31,31,36,23,24,22,64,33,64,30","LabelPoint":"000.00000000000000,00.00000000000000"},
{"Area":"3区","AttriNames":"一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月","Color":"16711680,65280,255,16711935,111111,222222,333333,444444,555555,666666,777777,888888","Result":"831,525,785,937,811,721,1158,1157,1076,1066,4743,1252","LabelPoint":"000.00000000000000,00.00000000000000"}]};

在columnChart组件中的<mx:series>
<mx:ColumnSeries  displayName="名称" yField="????(Result)" xField="????(AttriNames)" />
</mx:series>

问号处获得Object中的Result和月份,并以柱状图显示。 --------------------编程问答-------------------- flex中有柱状图的组件,你直接用就行了
补充:Java ,  Eclipse
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,