Article directory
Configuration item manual: https://echarts.apache.org/zh/option.html#title
1. Let the content be fully displayed
- Configuration
grid
:
grid: {
left: 110,
containLabel: true,
},
2. Let the content go beyond omission
yAxis: {
axisLabel: {
width: 66, // 文本显示宽度
overflow: 'truncate', // 超出的部分截断
ellipsis: '...', // 截断的部分用...代替
}
},