我有一个右侧有多个Y轴的折线图,但它们太近了。我应用的选项是:
{
scales: {
yAxes: [
{
id: "GC",
position: "right",
scaleLabel: {
display: true,
labelString: "Garbage Collection",
fontSize: 15
},
gridLines: {
display: false
},
ticks: {
beginAtZero: true
}
},
{
id: "CPU",
position: "right",
scaleLabel: {
display: true,
labelString: "CPU Usage",
fontSize: 15
},
gridLines: {
display: false
},
ticks: {
beginAtZero: true,
max: 100
}
}
]
}
}
结果:
如何增加多个Y轴之间的空间?