hichart柱状图

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sanshengshi134/article/details/79514320

“`
var categories= [
‘00:00-09:00’,
‘09:00-11:00’,
‘11:30-14:30’,
‘14:30-16:30’,
];
var data=[49.9, 71.5, 106.4, 129];
(function () { (‘#container’).highcharts({
chart: {
type: ‘line’
},
credits:{
enabled:false // 禁用版权信息
},
title: {
text: ‘各个时间段实际产量’
},
xAxis: {
categories: categories,
crosshair: true
},
yAxis: {
min: 0,
title: {
text: ‘产量 (个)’
}
},
tooltip: {
headerFormat: ‘{point.key}

’,
pointFormat: ‘’ +
‘’,
footerFormat: ‘
{series.name}: {point.y:.1f} mm
’,
shared: true,
useHTML: true
},
plotOptions: {
column: {
borderWidth: 0
},
series: {
dataLabels: {
enabled: true
}
}
},
exporting: {
enabled: false,
fallbackToExportServer: false
},
series: [{
name: ‘实际产量’,
data: data
}]
});
});

“`这里写图片描述

猜你喜欢

转载自blog.csdn.net/sanshengshi134/article/details/79514320