XMLSWF Charts 5.111 图表组件 使用帮助
xml 文件说明
chart_type
- line
- column (default)
- stacked column
- floating column
- 3d column
- image column
- stacked 3d column
- parallel 3d column
- pie
- 3d pie
- image pie
- donut
- bar
- stacked bar
- floating bar
- area
- stacked area
- 3d area
- stacked 3d area
- candlestick
- scatter
- polar
- bubble
<chart>
<chart_type>column</chart_type>
</chart>
例如:
<chart>
<chart_type>pie</chart_type>
<chart_data>
<row>
<null/>
<string>2008</string>
<string>2009</string>
<string>2010</string>
<string>2011</string>
</row>
<row>
<string>Region A</string>
<number>5</number>
<number>10</number>
<number>30</number>
<number>63</number>
</row>
<row>
<string>Region B</string>
<number>100</number>
<number>20</number>
<number>65</number>
<number>55</number>
</row>
<row>
<string>Region C</string>
<number>56</number>
<number>21</number>
<number>5</number>
<number>90</number>
</row>
</chart_data>
</chart>
html:
<html>
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub.../swflash.cab#version=6,0,0,0" width="400" height="250">
<param name="movie" value="charts.swf?xml_source=chart_data.xml&library_path=charts_library">
<embed src="charts.swf?xml_source=chart_data.xml&library_path=charts_library" width="400" height="250" type="application/x-shockwave-flash"
pluginspace="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
</body>
</html>
效果:
下载地址:https://files.cnblogs.com/luomingui/XMLSWF_Charts_v5.111.rar