Skip to content

[Bug] 坐标轴名称的overflow属性不生效 #17397

@asctrl

Description

@asctrl

Version

5.3.3

Link to Minimal Reproduction

No response

Steps to Reproduce

配置如下:
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value',
name:"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
nameTextStyle: {
width: 20,
overflow: 'truncate'
}
},
series: [
{
data: [120, 200, 150, 80, 70, 110, 130],
type: 'bar'
}
]
};

Current Behavior

y轴名称没有被截断

Expected Behavior

y轴名称按照宽度截断并加省略号

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions