-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
Bar series overflow xAxis when using xAxis.scale = true with several series #15189
Comments
Hi! We've received your issue and please be patient to get responded. 🎉 In the meanwhile, please make sure that it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so. A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster. You may also check out the API and chart option to get the answer. If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question. If you are interested in the project, you may also subscribe our mailing list. Have a nice day! 🍵 |
Does boundaryGap help? |
@100pah - option = {
"xAxis": { scale: true
// ,boundaryGap: ['10%', '10%'] // workaround
},
"yAxis": {},
"series": [ { "type": "bar" } ],
"dataset": [{
"source": [
["x", "y"],
[ 25000, 4 ],
[ 35000, 14 ],
[ 45000, 10 ],
[ 55000, 4 ],
// [ 66000, 1 ] // un-comment to see difference
]
}]
} May be related to #13321. |
I had the same problem, thank you very much @helgasoft ! |
Version
5.1.2
Reproduction link
https://jsfiddle.net/9p4j6175/
Steps to reproduce
What is expected?
The bars are not going at the left side of the xAxis for the lowest value.
We could add a option to add "extra security margins",
scale: {margin: '10%'}
could be a solution.What is actually happening?
The bars are on the left side of the xAxis for the lowest value.
The text was updated successfully, but these errors were encountered: