请查看this fiddle (long labels)。 x轴有opposite:true
。
xAxis: {
categories: ['0', '1', '2', '3'],
min: 0,
max: 1,
alternateGridColor: 'gray',
opposite: true,
labels: {
formatter: function () {
return 'very very very very very very very very very very very veryvery very very very very very very veryvery very very very very veryvery very very very very veryvery very very very very veryvery very very very very very very long.';
},
style: {
'background-color': 'red'
},
useHTML: true
}
}
为什么Highcharts会将大标签垂直重叠?关于如何制作标签的任何想法看起来都要高一些?
重新构建了我的问题并添加了另一个小提琴+屏幕截图。谢谢你的回答。 :)
答案 0 :(得分:0)
这是由您设置的y参数引起的。因此,当您的标签很短时,有位置(您定义的-50px),因此会打印间隙。