apache / apache/echarts

aAxis的lineOverflow没生效

Open
#14,506 9 comments 0 reactions 0 assignees View on GitHub
bug topic: label
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

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?
不能正确截断

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.