<%@ page contentType="text/html;charset=GBK" %>
<head>
<title></title>
<script language="JavaScript" src="../JSClass/FusionCharts.js"></script>
</head>

<table width="100%">
<tr>
<td><label class="title">3D环型图表</label></td>
<% String file=request.getServletPath().substring(1);
   String app=request.getContextPath();
%>
<td><label class="title">url：<%=file%></label></td>
<td align="right" valign="bottom" nowrap>&nbsp;[<a href="src.jsp?target=<%=file%>" target="source">源代码</a>]&nbsp;&nbsp;[<a target="_blank" href="parameter.htm"><font size="3">使用帮助</font></a>]</td>
</tr>
</table>
<hr>
<body bgcolor="#EDF3FF">
<table width="98%" border="0" cellspacing="0" cellpadding="3" align="center">
  <tr>
    <td valign="top" class="text" align="center"> <div id="chartdiv" align="center">
        WebChart</div>
      <script type="text/javascript">
		   var chart = new FusionCharts("../flashchart/Doughnut3D.swf", "ChartId", "600", "320", "0", "0");
		   //chart.setDataURL("Data/Doughnut3D.xml");//直接调用xml文件

                   var xml=" <chart  caption='排在全国人口前八位的省份(单位:万人)'  palette='4' decimals='3' baseFont='宋体' baseFontSize='14'  formatNumberScale='0'  bgColor='99CCFF,FFFFFF' bgAlpha='40,100' bgRatio='0,100' bgAngle='360' showBorder='1'>";
                  xml=xml+"<set label='河南' value='9918' isSliced='1' />";
                  xml=xml+"<set label='广东' value='9544' />";
                  xml=xml+"<set label='山东' value='9418' />";
                  xml=xml+"<set label='四川' value='8138' />";
                  xml=xml+"<set label='江苏' value='7677' />";
                  xml=xml+"<set label='河北' value='7121' />";
                  xml=xml+"<set label='湖南' value='6846' />";
                  xml=xml+"<set label='安徽' value='6741' />";
                  xml=xml+"</chart>";

                   chart.setDataXML(xml);
		   chart.render("chartdiv");
		</script> </td>
  </tr>

</table>
</body>
</html>
