Skip to content

[Bug] 图表只有一组数据时,缺少一侧刻度 #18453

@AAleeqqq

Description

@AAleeqqq

Version

5.4.2

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=bar-background

Steps to Reproduce

将 xAxis中data属性改为只有一个值
xAxis: {
type: 'category',
data: ['Mon']
},
在官网的示例中.每一个柱状图当只有一个值时,都出现该问题

Current Behavior

x轴右侧刻度丢失一个
Snipaste_2023-03-30_22-55-34

Expected Behavior

右侧刻度完整
Snipaste_2023-03-30_22-57-37

Environment

windows 
官网

Any additional comments?

No response

Metadata

Metadata

Assignees

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