$(document).ready(function() {
var chart = {
type: 'column'
};
var title = {
text: '访问量'
};
var xAxis = {
categories: ['周一','周二','周三','周四','周五','周六','周日'],
crosshair: true
};
var yAxis = {
min: 0,
title: {
text: '访问量'
}
};
var plotOptions = {
column: {
pointPadding: 0.2,
borderWidth: 0
}
};
var credits = {
enabled: false
};
var series= [{
name: '中国',
data: [49, 71, 106, 129, 144, 176, 200]
}, {
name: '美国',
data: [83, 78, 98, 93, 106, 84, 105]
}];
var json = {};
json.chart = chart;
json.title = title;
json.xAxis = xAxis;
json.yAxis = yAxis;
json.series = series;
json.plotOptions = plotOptions;
json.credits = credits;
$('#myChart').highcharts(json);
});
点击运行 》