label过长可以考虑设置两行显示处理
label: {
show: true,
rotate: -90,
position: 'inside',
formatter: (params) => {
const { name, value, dataIndex } = params;
if (name.length > 8) {
return name.substring(0, 8) + '\n' + name.substring(8);
} else {
return name;
}
},
textStyle: {
...commonStyle,
textVerticalAlign: 'middle',
},
},