-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Open
Labels
Milestone
Description
Version
5.0.2
Steps to reproduce
step1: 打开 https://echarts.apache.org/examples/zh/editor.html?c=bar-background
step:输入option
option = {
xAxis: {
type: 'category',
axisLabel: {
width: 50,
height: 20,
overflow: 'break',
lineOverflow: 'truncate'
},
data: ['MonMonMonMonMonMon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [{
data: [120, 200, 150, 80, 70, 110, 130],
type: 'bar',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
}]
};
What is expected?
文字应该是按高度截断的
What is actually happening?
不能正确截断