如上是一个饼状图:
代码如下:
<html>
<head>
<title>部门管理</title>
<script type="text/javascript" src="codebase/jscharts.js"></script>
</head>
<body>
<div id="graph">Loading graph...</div>
<script type="text/javascript">
/* var myChart = new JSChart('graph', 'bar');
myChart.setDataXML("data/chart.xml");
myChart.setSize(1100, 800);
myChart.setTitle("按集团和管理部门统计");
myChart.draw(); */
var myChart = new JSChart('graph', 'pie');
myCha