highcharts

来源:互联网 发布:java后台权限管理系统 编辑:程序博客网 时间:2024/06/08 04:18

//js代码

$.ajax({
url:"",
data:{},
beforeSend:function(){
showLoading("#container6");
},
success:function(resString){
//var datas=eval("("+resString+")");
showCharty6("","");
}
});

function showCharty6(datax,datay){
$(function () {
$('#container6').highcharts({
chart: {
type: 'column',
width:470,
height:220,
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: ''
},
subtitle: {
text: ''
},
xAxis: {
categories: ['初级职称','中级职称','高级职称']
},
yAxis: {
min: 0,
title: {
text: ''
}
},
tooltip: {
pointFormat: '{series.name}: <b>{point.y}人</b>'
},
plotOptions: {
column: {
pointPadding: 0.2,
borderWidth: 0,
dataLabels:{
enabled:true //是否显示数据标签
}
}
},
series: [{
name: '人数',
data: [200,100,50]
}]
});
});
}

//jsp代码

<div class="fenbu_ul_img">
<div id="container6" ></div>
</div>

0 0
原创粉丝点击