chart = new Highcharts.Chart({
chart: {
renderTo: 'container', //图表放置的容器,关联DIV#id
type: 'column', //柱状图
reflow:true //自适应div的大小
},
title: {
text: '数据库中每个人的年龄' //图表标题
},
xAxis: { //X轴标签
categories:xtext
},
yAxis: { //设置Y轴
title: {
text: '年龄大小'
}
},
// credits:{ //右下角文本不显示
// enabled: false
// },
tooltip:{ //鼠标移动到图形上时显示的提示框
shared: true,
useHTML: true
},
plotOptions:{
column:{
animation:true
}
},
series:[{
}]
}),
这是highcharts的代码 显示的时候没有动态的加载效果