标签:flex fusioncharts
Flex中配置FusionCharts
1.1 MyEclipse10.0
1.2 Flash Builder4.0
1.3 FusionCharts.swc(Flex4.0)
1.4 FusionCharts_fcBack.as
1.5 FusionCharts.as
1.6 fusioncharts swf文件
1.7 fusionwidgets swf文件
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%" creationComplete="initHandler()" xmlns:components="com.fusioncharts.components.*"> <fx:Script> <![CDATA[ import mx.collections.ArrayCollection; import mx.events.FlexEvent; [Bindable] /*3D柱形图数据源*/ private var chartData:ArrayCollection = new ArrayCollection([ {label:"星期一",value:"7845"}, {label:"星期二",value:"9845"}, {label:"星期三",value:"1542"}, {label:"星期四",value:"5645"}, {label:"星期五",value:"4875"}, {label:"星期六",value:"3215"}, {label:"星期日",value:"9887"} ]); [Bindable] /*2D柱形图属性*/ private var paramsArray:ArrayCollection = new ArrayCollection([ {baseFontSize:"12"}, {caption:"2014年某周人数统计"}, {showBorder:"1"}, {borderColor:"#00FF00"}, {bgColor:"#000000"}, {baseFontColor:"#FF0000"}, {showValue:"1"}, {numDivLines:"8"}, {divLineIsDashed:"1"}, {formatNumber:"0"}, {showAlternateHGridColor:"1"} ]); //初始化函数 protected function initHandler():void { fc.FCData(chartData); fc.FCParams(paramsArray); } ]]> </fx:Script> <fx:Declarations> <!-- 将非可视元素(例如服务、值对象)放在此处 --> </fx:Declarations> <components:FusionCharts id="fc" width="100%" height="100%" FCChartType="Column3D"> </components:FusionCharts> </s:Application>
Flex中配置FusionCharts,布布扣,bubuko.com
标签:flex fusioncharts
原文地址:http://blog.csdn.net/you23hai45/article/details/25840609