Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
AAleeqqq opened this issue Mar 30, 2023 · 2 comments · Fixed by #18469
Closed

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

AAleeqqq opened this issue Mar 30, 2023 · 2 comments · Fixed by #18469
Assignees

Comments

@AAleeqqq
Copy link

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

@AAleeqqq AAleeqqq added the bug label Mar 30, 2023
@echarts-bot echarts-bot bot added the missing-title This issue is missing a descriptive title. label Mar 30, 2023
@echarts-bot echarts-bot bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 30, 2023
@echarts-bot

This comment has been minimized.

@AAleeqqq AAleeqqq changed the title [Bug] [Bug] 图表只有一组数据时,缺少一侧刻度 Apr 1, 2023
@echarts-bot echarts-bot bot added the pending We are not sure about whether this is a bug/new feature. label Apr 1, 2023
@echarts-bot echarts-bot bot reopened this Apr 1, 2023
@echarts-bot echarts-bot bot removed the missing-title This issue is missing a descriptive title. label Apr 1, 2023
@echarts-bot
Copy link

echarts-bot bot commented Apr 1, 2023

@AAleeqqq It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

[Bug] When the chart has only one set of data, one side of the scale is missing

BODY

Version

5.4.2

Link to Minimal Reproduction

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

Steps to Reproduce

Change the data attribute in xAxis to only one value
xAxis: {
type: 'category',
data: ['Mon']
},
In the example on the official website. This problem occurs when each histogram has only one value

Current Behavior

The right scale of the x-axis is missing one
Snipaste_2023-03-30_22-55-34

Expected Behavior

The scale on the right is complete
Snipaste_2023-03-30_22-57-37

Environment

windows
official website

Any additional comments?

No response

@Ovilia Ovilia added topic: axis and removed pending We are not sure about whether this is a bug/new feature. labels Apr 3, 2023
@Ovilia Ovilia self-assigned this Apr 3, 2023
@plainheart plainheart linked a pull request May 18, 2023 that will close this issue
8 tasks
Ovilia added a commit that referenced this issue May 23, 2023
fix(axis): show last tick for single data #18453
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants