Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow non-zero Y-axis auto range #7196
When setting the y-axis of a graph to auto-range, the range alway includes the value "0" (zero).
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.
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?)
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