似乎 Highcharts 在 1. 系列线开始/系列线结束和 2. 垂直轴之间添加了一些间距。
有关更多详细信息,请参阅 jsfiddle 链接和下面的屏幕截图。
Highcharts.chart('container', {
title: {
text: 'Solar Employment Growth by Sector, 2010-2016'
},
subtitle: {
text: 'Source: thesolarfoundation.com'
},
xAxis: {
categories: ['D1', 'D2', 'D3', 'D4']
},
yAxis: {
title: {
text: 'Number of Employees'
}
},
legend: {
layout: 'vertical',
verticalAlign: 'bottom'
},
plotOptions: {
series: {
}
},
series: [{
name: 'Installation',
data: [43934, 52503, 57177, 69658]
}, {
name: 'Manufacturing',
data: [24916, 24064, 29742, 29851]
}, { …Run Code Online (Sandbox Code Playgroud) highcharts ×1