-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
elasticY does not work if all values are negative (ordinal x axis) #879
Comments
Never mind, just needed to set the y axis domain to start from 0. |
Thanks @jtsherba. I think there is a bug here, because https://jsfiddle.net/tjsd4yqs/12/ Retitling. |
Are your aware of any workarounds to make elasticY work with negative values? |
We recently ran into this issue in our product as well, both with bar charts and row charts. After some investigation, we think that the following changes would fix the issue:
I would be happy to prepare a proper PR in the beginning of next week, if you think this is the way to go. :) Ping @stillesjo |
I have opened a PR (#1156) with the proposed solution above, but there are some issues that need to be discussed. All input is welcome! |
@gordonwoodhull: what do you think about this solution? |
Fixed by #1156 in 2.0 beta 32. |
I believe I have found a little bug.
For an ordinal bar chart with only negative values, the bar for the highest value does not draw correctly.
The issue is not present when there are one or more positive values included.
See example here: https://jsfiddle.net/tjsd4yqs/6/
The text was updated successfully, but these errors were encountered: