Skip to content

aAxis的lineOverflow没生效 #14506

@Elm1992

Description

@Elm1992

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?

不能正确截断

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions