FusionCharts Free的
接下來在jsp頁面中引入js
復制代碼 代碼如下:<script type="text/javascript" src="FusionChartsFree/JSClass/FusionCharts
然後寫入
<script type="text/javascript">
var chart = new FusionCharts("FusionChartsFree/Charts/FCF_Column
chart
chart
</script>
第二行的參數分別為
第三行是設置要顯示數據XML的地址
第四行是渲染圖形參數是DIV的id
附
<%@ page language="java" import="java
<%
String path = request
String basePath = request
%>
<!DOCTYPE HTML PUBLIC "
<html>
<head>
<base href="<%=basePath%>">
<title>Demo</title>
<script type="text/javascript" src="FusionChartsFree/JSClass/FusionCharts
</head>
<body>
<div id="div
<script type="text/javascript">
var chart = new FusionCharts("FusionChartsFree/Charts/FCF_Column
chart
chart
</script>
</body>
</html>
顯示效果
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20121.html