答案 0 :(得分:0)
只需在轴中使用 titleMargin 配置:
axes: [{
type: 'numeric',
title: 'My Title',
titleMargin: 100,
fields: ['field1', 'field2'],
position: 'left',
grid: true
}, {
type: 'category',
title: 'Period',
titleMargin: 100,
position: 'bottom',
fields: 'period_field',
label: {
rotate: {
degrees: -45
}
}
}]