Fusionchart使用说明文档


(Fusion chart-----3D 饼图、折线图、柱状图破解版) 1 Fusion Chart 使用说明文档 (破解版 V3.0) 作者:戴枫 (Email:df15811370051@163.com) 2010 年 12 月 27 日 星期一 说明:本文档只用于技术交流使用,内容来自网络。可转载,修改。 本人能力有限,避免不了错误之处。敬请谅解! (Fusion chart-----3D 饼图、折线图、柱状图破解版) 2 目 录 1. Fusioncharts......................................................................................................................................................... 4 1.1. Create Chart using MXML ........................................................................................................................ 4 1.1.1. 属性说明: ................................................................................................................................. 4 1.1.2. 事件 ............................................................................................................................................. 4 1.1.3. 样式 ............................................................................................................................................. 5 1.2. Create Chart using script .......................................................................................................................... 6 2. Single Series Chart ............................................................................................................................................... 7 2.1. Data from XML File .................................................................................................................................. 7 2.2. Data from XML String ............................................................................................................................... 7 2.3. Data from Array ....................................................................................................................................... 8 2.4. Data from XML List ................................................................................................................................... 8 2.5. Data from Model ...................................................................................................................................... 9 3. Multi-Series Chart .............................................................................................................................................. 10 3.1. Data from XML File ................................................................................................................................ 10 3.2. Data from XML String ............................................................................................................................. 11 3.3. Data from Array ..................................................................................................................................... 12 3.4. Data from XML List ................................................................................................................................. 13 3.5. Data from Model .................................................................................................................................... 14 4. Data Mapping .................................................................................................................................................... 17 4.1. Single Series Data................................................................................................................................... 17 4.1.1. Mapping onto Flex ArrayCollection Object ................................................................................ 17 4.1.2. Mapping onto Flex XMLList Object ............................................................................................ 18 4.1.3. Mapping onto Flex Model Object .............................................................................................. 19 4.2. Multi-Series Data ................................................................................................................................... 20 4.2.1. Mapping onto Flex ArrayCollection Object ................................................................................ 20 4.2.2. Mapping onto Flex XMLList Object ............................................................................................ 21 4.2.3. Mapping onto Flex Model Object .............................................................................................. 22 5. Fusionchart 参数说明 ....................................................................................................................................... 23 5.1. 功能特性 ............................................................................................................................................... 23 5.2. 字体属性 ............................................................................................................................................... 23 5.3. 图表标题和轴名称 ............................................................................................................................... 24 5.4. 图表和画布的样式 ............................................................................................................................... 24 5.5. 分区线和网格 ....................................................................................................................................... 25 5.6. 数字格式 ............................................................................................................................................... 25 5.7. Tool- tip/Hover 标题 ............................................................................................................................. 26 5.8. 折线图的参数 ....................................................................................................................................... 26 5.9. 图表边距的设置 ................................................................................................................................... 26 5.10. Zero Plane .......................................................................................................................................... 27 5.11. Set 标签使用的参数 ......................................................................................................................... 27 (Fusion chart-----3D 饼图、折线图、柱状图破解版) 3 5.12. 其他 ................................................................................................................................................... 27 6. 附件 ................................................................................................................................................................... 28 6.1. chartType 表 .......................................................................................................................................... 28 6.2. Fusioncharts 属性列表 .......................................................................................................................... 30 6.3. 中文乱码 ............................................................................................................................................... 31 (Fusion chart-----3D 饼图、折线图、柱状图破解版) 4 1. Fusioncharts 1.1. Create Chart using MXML 1.1.1. 属性说明: (数据源:请参照 sschart or mschart)  FCChartType :设置 chart 类型,具体类型名称,请参照附件 chartType 表。  FCDataURL : 使用 XML URL 作为数据源。例:FCDataURL="MSColumn3D.xml"  FCDataXML : 使用 XML String 作为数据源。例:FCDataXML="{xmlData}"  FCData :使用 Array 作为数据源,与 FCParams 一起使用。例:FCData ="{chartData}"  FCParams :设置 Array 数据源中的各个属性参数。例:FCParams="{chartParams}"  FCDebugMode:设置调试模式,默认为 false,如果设置成 true 则开启调试。FCDebugMode="true" 1.1.2. 事件 (因为 SWF 文件被破解,某些事件可能无法使用) Event Name Description FCClickEvent Whenever a user clicks on a dataplot, which has link attribute that starts with 'S-', this event is triggered. FCRenderEvent When the chart finishes rendering, this event is triggered. FCLoadEvent This event is triggered after the chart data gets loaded completely before rendering starts. FCErrorEvent The event is triggered when an error is generated. FCExported This event is generated after the completetion of the image export process. FCDataLoadedEvent The event is dispatched after the chart data is loaded. The event is independent of the data source viz. FCData, FCDataXML, FCDataURL. FCDataLoadErrorEvent This event is dispathched if the chart fails to load data. Generally caused due to invalid or (Fusion chart-----3D 饼图、折线图、柱状图破解版) 5 empty data sources. FCDataXMLInvalidEvent This event is generated if the data source does not conform to FusionCharts XML. FCNoDataToDisplayEvent Whenever the dataset consists of just the root element without any additional data, this event is generated. 使用例子: 1.1.3. 样式 关于样式的使用,在数据提供的 XML 文件中加入如下定义: (Fusion chart-----3D 饼图、折线图、柱状图破解版) 6