//js代码
$.ajax({
url:"",
data:{"date":new Date().getMilliseconds()},
beforeSend:function(){
showLoading("#container5");
},
success:function(resString){
//var datas = eval(resString);
showChart5("");
}
});
function showChart5(datas){
$(function () {
$('#container5').highcharts({
chart: {
width:470,
height:220,
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: ''
},
tooltip: {
pointFormat: '{series.name}: <b>{point.y}人</b>'
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
color: '#000000',
connectorColor: '#000000',
format: '<b>{point.name}</b>: {point.y}人'
}
}
},
series: [{
type: 'pie',
name: '人数',
data:[
['本科以下',400],
['本科',500],
['本科以上',100]
]
}]
});
});
}
//jsp代码
<div class="fenbu_ul_img">
<div id="container5" ></div>
</div>