Skip to content

[Bug] 折线图折线数据很小时,y轴标签都重叠到一起了 #21160

@imapach

Description

@imapach

Version

5.5.1

Link to Minimal Reproduction

https://codepen.io/imapach/pen/EaVmaeR

Steps to Reproduce

option = {
xAxis: {
data: [0, 1, 2, 3, 4, 5]
},
yAxis: {
type: 'value'
},
series: [
{
name: 'line1',
data: [0.0, 1.0e-14, 2.0e-14, 3.0e-14, 4.0e-14, 5.0e-14],
type: 'line'
}
]
};

给yaxis指定min,max后,
yAxis: {
type: 'value',
min:0,
max:5e-14,
},
可达到预期效果,但是指定min,max后如果有多个line可点击显示隐藏时,y轴无法自适应line的间隔

Current Behavior

Image

Expected Behavior

Image

Environment

- OS: Windows10
- Browser: Chrome 137.0.7151.69
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions