加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

flex 圆饼图的简单实现——xml数据

发布时间:2020-12-15 03:44:44 所属栏目:百科 来源:网络整理
导读:? ?? s:Panel id=" PieChart " x=" 30 " y=" 300 " width=" 500 " height=" 500 " title=" 消费一览表 " ??????? !-- 创建 PieChart 图表 -- ??????? mx:Legend dataProvider=" { myPieChart } " / !-- mx:legend 表示图例,说明不同的颜色序列对应的数据字

? ??<s:Panel id="PieChart" x="30" y="300" width="500" height="500" title="消费一览表">

??????? <!-- 创建 PieChart 图表 -->

??????? <mx:Legend dataProvider="{myPieChart}"/><!-- <mx:legend 表示图例,说明不同的颜色序列对应的数据字段

??????? mx:series表示数据序列,即是在图表中呈现的数据。-->

???

??? <mx:PieChart x="30" id="myPieChart" dataProvider="{exp.getExpenses.lastResult}"showDataTips="true">

??????? <mx:series>

??????????? <mx:PieSeries field="ac" nameField="ex" labelPosition="inside" />

??????? </mx:series>

??? </mx:PieChart>

??? <s:Button x="5" y="5" label="显示图形" click="exp.getExpenses() "/>

??? </s:Panel>

<fx:Declarations>

??????? <!-- 将非可视元素(例如服务、值对象)放在此处 -->

??? <fx:XMLList id="doctorHuadong">//xml 数据描述

??????????? <doctor>

??????????????? <city>

??????????????????? 上海

??????????????? </city>

??????????????? <doctorName>

??????????????????? zyp

??????????????? </doctorName>

??????????????? <yiAduit>

??????????????????? 6

??????????????? </yiAduit>

??????????????? <weiAduit>

??????????????????? 1

??????????????? </weiAduit>

??????????????? <hospital>

??????????????????? 上海301医院

??????????????? </hospital>

??????????????? <registdate>

??????????????????? 2014-04-01

??????????????? </registdate>

??????????? </doctor>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读