DWZ下图表处理问题 ,JS 不显示
风云幻变 2015-07-29 04:14:28 http://yunpan.cn/ccTPYwfV5WtWc 访问密码 aee2
以下页面调用正常
<script type="text/javascript" >
titleXpos = 390;
titleYpos = 85;
/* Pie Data */
pieRadius = 130;
pieXpos = 150;
pieYpos = 180;
title = '<%=ViewData["str_Titile"]%>';
var objkey = '<%=ViewData["objKeys"]%>';
var objvalue = '<%=ViewData["objValues"]%>';
pieLegend = objkey.split(",");
var pieData1 = objvalue.split(",") ;
var pieData = new Array();
for (var i = 0; i < pieData1.length; i++) {
pieData[i] = pieData1[i] * 1;
}
pieLegendPos = "east";
$(function () {
var r = Raphael("chartHolder");
r.text(titleXpos, titleYpos, title).attr({ "font-size": 20 });
var pie = r.piechart(pieXpos, pieYpos, pieRadius, pieData, { legend: pieLegend, legendpos: pieLegendPos });
pie.hover(function () {
this.sector.stop();
this.sector.scale(1.1, 1.1, this.cx, this.cy);
if (this.label) {
this.label[0].stop();
this.label[0].attr({ r: 7.5 });
this.label[1].attr({ "font-weight": 800 });
}
}, function () {
this.sector.animate({ transform: 's1 1 ' + this.cx + ' ' + this.cy }, 500, "bounce");
if (this.label) {
this.label[0].animate({ r: 5 }, 500, "bounce");
this.label[1].attr({ "font-weight": 400 });
}
});
});
</script>
可是在另一个页面调用测试没有发现任何 的错误也不显示图表,请高手指点,相关资料在第一行地址可以下载,谢谢!