首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >arrayCollection :如何用FLEX填充FLEX

arrayCollection :如何用FLEX填充FLEX
EN

Stack Overflow用户
提问于 2010-05-04 23:30:49
回答 1查看 586关注 0票数 0

如何在我的mx:AreaSeries中显示arrayCollection的内容?

代码语言:javascript
复制
arrayCollection = [12,31,12,42];
<mx:CartesianChart id="AllChart" dataProvider="{arrayCollection}" width="100%" height="100">
                <mx:AreaSeries" /> <!-- how can I refer to the cells ? Should I use associative array ? -->
</mx:Cartesian Chart>

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-05-04 23:39:12

您应该在数组集合中使用对象,如此处的示例:

http://livedocs.adobe.com/flex/3/html/help.html?content=charts_types_02.html

即:

代码语言:javascript
复制
arrayCollection = [{val:12},{val:31},{val:12},{val:42}];
<mx:CartesianChart id="AllChart" dataProvider="{arrayCollection}" width="100%" height="100">
                <mx:AreaSeries yField="val" /> <!-- how can I refer to the cells ? Should I use associative array ? -->
</mx:Cartesian Chart>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2766676

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档