欢迎来到天天文库
浏览记录
ID:37009873
大小:224.01 KB
页数:6页
时间:2019-05-12
《fusioncharts展示报表方法的步骤及例子》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、FusionCharts展示报表方法的步骤及例子TocreateanychartusingFusionCharts,youneedtoassemblethreethings:1.SWFFileforthechartthatyouwanttocreate.Wewanttocreatea3DColumnChart,whoseSWFfileisnamedasColumn3D.swf.AllthechartSWFfilesarepresentinDownloadPackage>Chartsfolder.2.XMLDataFile.FusionChartsacceptsdataonlyina
2、pre-definedXMLformat.So,you'llneedtoconvertyourdatatoXMLformat-eitherusingaserversidescriptinglanguageormanually.3.HTMLWrapperFile.ThisHTMLfilewouldcontainthecodetoembedthechart.方法一:usesthesimpleHTMLembeddingmethod(例一和例二)例一(画出3D柱状图):步骤:1)SettingtheChartSWFMonthNetRevenueJanuary$17400February$1
3、9800March$21800April$23800May$29600June$27600July$31800August$39700September$37800October$21900November$32900December$39800CopyallthechartSWFfiles(fromDownloadPackage>Chartsfolder)intothisnewlycreatedfolder(c:FusionChartsFusionCharts).it'sagoodideatokeepallthechartSWFfilesinarootlevelfolder
4、namedasFusionCharts.ThismakessurethatyoudonothavemultiplecopiesofthesamechartSWF.2)CreatingtheXMLdatadocumentwe'replottingmonthlysalessummaryforagivenyear,ourdataintabularformwouldlooksomethinglikebelow.Eachmonthgivenbelowwouldberepresentedonthechartasa3Dcolumn.TheconvertedXMLdatawouldlookasun
5、der(saveitasData.xmlunderc:FusionChartsMyFirstChartfolder.): 6、etlabel='April'value='23800'/> 7、etlabel='December'value='39800'/>3)CreatingtheHTMLcontainerforchart(SavethisfileasChart.htmlunderMyFirstChartfolder): MyFirstFusionCharts
6、etlabel='April'value='23800'/>
7、etlabel='December'value='39800'/>3)CreatingtheHTMLcontainerforchart(SavethisfileasChart.htmlunderMyFirstChartfolder):
此文档下载收益归作者所有