使用FusionCharts_Evaluation心得小记

近日开发需要,做服务器监控统计,zabbix做的二次开发,统计图部分原来是图片的,没flash效果好,应需求,改成flash的.遇到点小问题,调试了好久才解决,现在,写在这里,供其他遇到该问题的朋友阅读尝试解决此类问题!
1,FusionCharts_Evaluation 的 flash以url形式(带多个参数)加载xml的时候,发现无论怎么调试,显示的统计图都是不变的,原因是

&chartWidth=450&chartHeight=300&debugMode=0&dataURL=chart1.php?graphid=2&stime=200909171519&period=3600

中的dataURL后面的,才是xml的url地址,而 &之后的参数,被作为整个flash的参数了,只要将dataURL的地址进行url编码一下即可!(

chart1.php%3Fgraphid%3D2%26stime%3D200909171519%26period%3D3600

)
2,FusionCharts_Evaluation的Flash加载xml中文乱码问题,首先确定所有文件为UTF-8编码,js文件,js代码引用xml文件,以及生成xml的文件都要为UTF-8,很让人不解的是,生成xml的文件,要以含有BOM的UTF-8文件保存才可以,很费解…

随机日志

发表评论

2 Comments.

  1. 我刚接触这个强大的报表 但是我部署在tomcat上怎么不能够显示!装有播放的插件!在本地上打开可以显示 路径没有错误! :?:

Leave a Reply



[ Ctrl + Enter ]

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

CNXCT小组的博客 is Stephen Fry proof thanks to caching by WP Super Cache