-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Allow non-zero Y-axis auto range #7196
Comments
Starting the Y-axis at values other than zero is a bit controversial as it can easily lead to misleading visualizations, especially for charts where the size of the element represents the value, i.e. bar charts (and area charts?), but we do already allow you to set it manually, so I don't see why we shouldn't allow it to auto-range as well (as long as it's not the default behavior). However, I wonder if we should disable starting the Y-axis at non-zero values (both manual and automatic) for bar charts (and area charts?) |
This comment was marked as duplicate.
This comment was marked as duplicate.
I created an question on the forums (https://discourse.metabase.com/t/auto-y-axis-range-minimum-always-uses-0/6207/2) and was directed here. I would actually prefer and love auto to use min y-axis value. Maybe you could add an additional checkbox |
This would probably solve it when implemented: |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This is a must have. Perhaps just a new dropdown when |
auto y-axis range defaulting to Shouldn't the logic just be find the |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as spam.
This comment was marked as spam.
I have a chart showing analyses for different elements. Depending on what element is chosen, the range varies from ~60 for one, and around 0.002 for another. With 0 locked in place we cannot easily see variations in the ones with larger values. |
This comment was marked as spam.
This comment was marked as spam.
Any plans around that? |
thank you! %) |
This is merged for Metabase 50 and available now if you try out the Release Candidate 1. If you give it a spin, drop us a note with how it goes. |
@cdeweyx this looks great to me, I've only messed around with it so far but it's working pretty much as expected. I thought it would work on bars/rows/area but I guess it was intentional to to allow that. I think this does highlight a small pre-existing frustration I've had around split y-axis in Metabase though, you can't configure the left and right separately (scale, title, unpin from zero etc.), settings are applied to both. Happy with this unpin from 0 feature though! Looks good. |
@notrom Thanks for the feedback! 🙌 We have plans to follow up with separate configuration in split axes cases in the next release, so stay tuned for that. |
When setting the y-axis of a graph to auto-range, the range alway includes the value "0" (zero).
E.g. my data are all around -27 (-27.1 to -27.6). When Auto-range is used, the range goes from 0 to -27.x which means that the data are basically only visible as a line without being bale to see the variation in the data.
See the following example. The left y-axis is holding the data with values around -27. Those are plotted in blue at the bottom of the graph.
A better auto-range would be to use min(y) and max(y) as the range boundaries.
Thanks!
⬇️ Please click the 👍 reaction instead of leaving a
+1
orupdate?
commentThe text was updated successfully, but these errors were encountered: