一、首先,需要引插件:
jquery-1.11.3.js
highcharts.js
highcharts-more.js
二、body中的html代码
<div id="container_center"></div>
三、js代码
<script type="text/javascript">
var xArray;
var yArray;
var seriesArray;
$(function() {
$.ajax({
type: "POST",
dataType: "JSON",
url: "<%=basePath%>admin/project/getprojectdatas.php?id=${id}",
success : function(result){
xArray = result.xArray;
yArray = result.yArray;
seriesArray = result.seriesArray;
$('#contai