`
sorehead
  • 浏览: 46031 次
  • 性别: Icon_minigender_2
  • 来自: 达纳苏斯
社区版块
存档分类
最新评论

Flex中如何创建clustered, stacked, overlaid以及100% Bar charts(图表)

阅读更多
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white" viewSourceURL="srcview/index.html">

    <mx:ApplicationControlBar dock="true">
        <mx:Form>
            <mx:FormItem label="type:">
                <mx:ComboBox id="comboBox">
                    <mx:dataProvider>
                        <mx:Object label="clustered" />
                        <mx:Object label="stacked" />
                        <mx:Object label="100%" />
                        <mx:Object label="overlaid" />
                    </mx:dataProvider>
                </mx:ComboBox>
            </mx:FormItem>
            <mx:FormItem label="showDataTips:">
                <mx:CheckBox id="checkBox1" />
            </mx:FormItem>
            <mx:FormItem label="showAllDataTips:">
                <mx:CheckBox id="checkBox2" />
            </mx:FormItem>
        </mx:Form>

        <mx:Spacer width="100%" />

        <mx:Legend dataProvider="{barChart}"/>
    </mx:ApplicationControlBar>

    <mx:BarChart id="barChart"
            type="{comboBox.selectedItem.label}"
            showDataTips="{checkBox1.selected}"
            showAllDataTips="{checkBox2.selected}"
            height="100%"
            width="100%">

        <mx:dataProvider>
            <mx:Array>
                <mx:Object name="R Winn" obp=".353" slg=".445" avg=".300" />
                <mx:Object name="P Feliz" obp=".290" slg=".418" avg=".253" />
                <mx:Object name="O Vizquel" obp=".305" slg=".316" avg=".246" />
                <mx:Object name="B Molina" obp=".298" slg=".433" avg=".276" />
                <mx:Object name="R Durham" obp=".295" slg=".343" avg=".218" />
            </mx:Array>
        </mx:dataProvider>

        <mx:verticalAxis>
            <mx:CategoryAxis categoryField="name"/>
        </mx:verticalAxis>

        <mx:series>
            <mx:BarSeries yField="name" xField="obp" displayName="OBP"/>
            <mx:BarSeries yField="name" xField="slg" displayName="SLG"/>
            <mx:BarSeries yField="name" xField="avg" displayName="AVG"/>
        </mx:series>
    </mx:BarChart>

</mx:Application>

 

分享到:
评论

相关推荐

    ehcache-clustered-3.3.1-kit.zip

    ehcache、ehcache-clustered 等jar包,已经相关的api文档和官方的参考文档

    StimulSoft_Reports.Net_2009.1.359破解+2009.1.400试用版_Part1

    本产品支持如下的图表类型:簇状柱形图(Clustered Column)、簇状条形图(ClusteredBar)、区域图(Area)、饼状图(Pie)、圆环图(Doughnut)、线形图(Line)、样条图(Spline)、样条区域图(Spline Area)、堆...

    StimulSoft_Reports.Net_2009.1.359破解+2009.1.400试用版_Part2

    本产品支持如下的图表类型:簇状柱形图(Clustered Column)、簇状条形图(ClusteredBar)、区域图(Area)、饼状图(Pie)、圆环图(Doughnut)、线形图(Line)、样条图(Spline)、样条区域图(Spline Area)、堆...

    Ehcache 3(ehcache-clustered-3.8.1-kit.zip)

    具有集群支持的 Ehcache 3(ehcache-clustered-3.8.1-kit.zip)

    Clustered Shadering代码实例

    D3D11实现正向渲染、延迟渲染、TileBase延迟渲染、Clustered渲染的实例,以及延迟渲染反走样的实例,便于学习

    Isilon IQ Clustered Storage System产品介绍

    Isilon IQ Clustered Storage System是集成Isilon专有的OneFS:registered:操作系统软件和符合行业标准的最佳硬件而创建的单一文件系统,具有Isilon企业级集群存储方案的主要优点——无可比拟的高扩展性、高性能和...

    ehcache-clustered-3.10.0-kit.tgz

    ehcache-clustered-3.10.0-kit.tgz

    ehcache-clustered-3.9.6-kit.zip

    ehcache-clustered-3.9.6-kit.zip

    ehcache-clustered-3.8.1-kit.zip

    ehcache-clustered-3.8.1-kit.zip

    The Oracle Clustered File System, Version 2.pdf

    The Oracle Clustered File System, Version 2

    ehcache3集群、ehcache-clustered、terracotta资源包

    ehcache3集群相关资源,包括ehcache-clustered-3.10.0-kit、ehcache-3.10.0.jar、ehcache-clustered-3.10.0.jar、terracotta-3.7.7.tar.gz、ehcache-transactions-3.10.0.jar

    Virtual MISO Based Energy-efficient Broadcasting in Clustered Wireless Sensor Networks

    In this paper, we consider a clustered wireless sensor network (WSN) where a virtual MISO based energy-efficient broadcasting scheme is investigated with centralized and distributed algorithms....

    springboot-quartz

    springboot-quartz项目,下载了就可以快速集成,这是博客地址:https://blog.csdn.net/persistencegoing/article/details/88393039

    kettle 5.0.1

    Installs in minutes; you can be productive in one ...Enterprise-class performance and scalability with a broad range of deployment options including dedicated, clustered, and/or cloud-based ETL servers

    kettle 5.0.1 04

    Installs in minutes; you can be productive in one ...Enterprise-class performance and scalability with a broad range of deployment options including dedicated, clustered, and/or cloud-based ETL servers

    kettle 5.0.1 08

    Installs in minutes; you can be productive in one ...Enterprise-class performance and scalability with a broad range of deployment options including dedicated, clustered, and/or cloud-based ETL servers

    kettle 5.0.1 02

    Installs in minutes; you can be productive in one ...Enterprise-class performance and scalability with a broad range of deployment options including dedicated, clustered, and/or cloud-based ETL servers

    kettle 5.0.1 07

    Installs in minutes; you can be productive in one ...Enterprise-class performance and scalability with a broad range of deployment options including dedicated, clustered, and/or cloud-based ETL servers

    kettle 5.0.1 06

    Installs in minutes; you can be productive in one ...Enterprise-class performance and scalability with a broad range of deployment options including dedicated, clustered, and/or cloud-based ETL servers

    kettle 5.0.1 09

    Installs in minutes; you can be productive in one ...Enterprise-class performance and scalability with a broad range of deployment options including dedicated, clustered, and/or cloud-based ETL servers

Global site tag (gtag.js) - Google Analytics