//页面部分:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="/SSMDemo/js/echarts-all.js"></script>
<script src="/SSMDemo/js/jquery.min.js"></script>
</head>
<body>
<div id="myPie" style="width:400px;height:400px;"></div>
<div id="myTable" style="width:400px;height:400px;">
</div>
</body>
//JS部分:
<script type="text/javascript">
//页面加载时隐藏table,并发送获取图表信息请求
$(function(){
$("#myTable").hide();
//定义数据全局变量,以便饼图点击函数能够调用获取数据
var seriesData = [];
$.ajax({
url:"http://localhost:8080/SSMDemo/getEcharts.do",
type:"post",
data:{},<