如何在全局设置 drawYAxis: false 时隐藏画布上的 Y2 轴并回收空间。左侧和右侧隐藏了标签,但在图表的右侧仍有约 50 像素的内边距无人认领。左侧(Y1)按预期完全回收。
drawYAxis: false,
series: {
'Altitude': {
axis: 'Y2',
drawYAxis: false <-- this doesn't work.
}
},
axes: {
x: {
axisLabelFormatter: xAxisLabelFormatter,
axisLabelFontSize: 12,
axisLabelColor: "#FFF"
},
y2: {
drawYAxis: false <-- neither does this.
}
},