yAxis.axisLabel.rich.<user defined style name>.verticalAlign不生效
配置项如下
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value',
axisLabel: {
lineHeight: 30,
formatter: function(value, index) {
if (index === 0) {return `{top|${value}}`}
return `{bottom|${value}}`
},
rich: {
top: {
verticalAlign: 'top',
// lineHeight: 30,
},
bottom: {
verticalAlign: 'bottom',
// lineHeight: 30,
}
}
},
},
series: [{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line',
smooth: true
}]
};