漂亮的flash报表--amchart
1. 从amchart官方网站下载amcolumn.swf、amline_settings2.xml、swfobject.js
2.在jsp页面中加入<script type="text/javascript" src="../../report/swfobject.js"></script>
3。js方法
function showCharts(data) {
var so = new SWFObject("../../report/amcolumn.swf", "report", "600", "200", "8", "#ffffff");
so.addVariable("loading_data", "加载数据");
so.addVariable("path", "../../report/");
so.addVariable("settings_file", encodeURIComponent("../../report/amline_settings2.xml"))
so.addVariable("chart_data", encodeURIComponent(data));
so.write("shap");
return;
}
4。数据格式
function show(){
var data="张三;2/n李四;5/n王五;21";
showCharts(data);
}
5。破解文件amcharts_key.txt;【so.addVariable("path", "../../report/"); 设置破解路径的】
文件里写入以下字符串 -cracked-1422-7223-cracked-
6。页面上有一个div其id为shap
7。显示结果: