如何添加具有多个窗格的滚动?
请看小提琴,第三格是重叠的
yAxis: [{
title: { text: 'Coffee Cups'},
height: '60%',
offset: 0,
lineWidth: 2
}, {
title: { text: 'Hazelnut Cups' },
top: '65%',
height: '60%',
offset: 0,
lineWidth: 2
}, {
title: { text: 'Choco Cups' },
top: '130%',
height: '60%',
offset: 0,
lineWidth: 2
}]注意:在我的场景中,它可以是100个多窗格。

发布于 2019-02-01 03:03:59
Y轴的高度之和大于100%,这会导致重叠。不能超过100%:
yAxis: [{
labels: {
align: 'right',
x: -3
},
title: {
text: 'Coffee Cups'
},
height: '33.33%',
offset: 0,
lineWidth: 2
}, {
labels: {
align: 'right',
x: -3
},
title: {
text: 'Hazelnut Cups'
},
top: '33.33%',
height: '33.33%',
offset: 0,
lineWidth: 2
}, {
title: {
text: 'Hazelnut Cups'
},
top: '66.66%',
height: '33.33%',
offset: 0,
lineWidth: 2
}]现场演示:http://jsfiddle.net/BlackLabel/g7uto6xc/
接口参考:https://api.highcharts.com/highstock/yAxis.height
编辑:
经过大量的定制,达到了预期的效果:
现场演示:http://jsfiddle.net/BlackLabel/u293pvnj/
https://stackoverflow.com/questions/54467415
复制相似问题