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]the bar chart starts at 0, and setting xAxis.axisline.onZero: false won't make it start at the minimum #17077

Closed
yuntian001 opened this issue May 20, 2022 · 3 comments · Fixed by #17078
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature. stale Inactive for a long time. Will be closed in 7 days. waiting-for: community

Comments

@yuntian001
Copy link

Version

5.3.2

Link to Minimal Reproduction

No response

Steps to Reproduce

option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
axisLine: {
onZero: false
}
},
yAxis: {
type: 'value'
},
series: [{
data: [-120, 200, 150, 80, 70, 110, 130],
type: 'bar'
}]
}

Current Behavior

In 5.2.2, the bar chart starts at 0, and setting xAxis.axisline.onZero: false won't make it start at the minimum
image

Expected Behavior

This is OK for versions below 4.0.0

image

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@yuntian001 yuntian001 added the bug label May 20, 2022
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. waiting-for: community labels May 20, 2022
@jiawulin001
Copy link
Member

This is no longer supported now. But I can make a feature PR for this.

Copy link
Contributor

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

@github-actions github-actions bot added the stale Inactive for a long time. Will be closed in 7 days. label May 20, 2024
@yuntian001
Copy link
Author

When can it be resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature. stale Inactive for a long time. Will be closed in 7 days. waiting-for: community
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants