好久没来提问了
就是现在在试着用FusionCharts做图形统计报表,自己写的个超简单的demo,但是有问题。求助!
现贴上代码,望大虾指教!
这个是xml
<?xml version="1.0" encoding="UTF-8"?>
<graph caption='salary' xAxisName='month' yAxisName='Sales'>
<set name='1' value='13244'/>
<set name='2' value='45454'/>
<set name='3' value='54465'/>
<set name='4' value='22344'/>
<set name='5' value='45645'/>
<set name='6' value='65434'/>
</graph>
这个是jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="<%request.getContextPath();%>/FusionCharts/FusionCharts.js"></script>
</head>
<body bgcolor="#ffffff">
<div id="chartDiv"></div>
<script type="text/javascript">
var myCharts=new FusionCharts("/FusionCharts/Column3D.swf","myChartId","400","300");
myCharts.setDataURL("test1.xml");
myCharts.render("chartDiv");
</script>
</body>
</html>
然后调试的时候就说这行var myCharts=new FusionCharts("/FusionCharts/Column3D.swf","myChartId","400","300");里面FusionCharts未定义。