問題
yAxis: {
type: 'category',
data: yAxis,
axisLabel: {
inside: true,
*verticalAlign: 'middle'*
// 文檔中應該是這個屬性來設置垂直居中,但是未生效
},
axisLine: {
lineStyle: {
color: '#fff',
},
},
zlevel: 1,
},
解決
設置textStyle lineHeight
axisLabel:{
textStyle:{
color: "#444",
fontSize: 8,
lineHeight: 9
},
}