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

Allow non-zero Y-axis auto range #7196

rfriedr1 opened this issue Mar 24, 2018 · 3 comments


None yet
4 participants
Copy link

commented Mar 24, 2018

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.

screen shot 2018-03-24 at 4 56 50 pm

A better auto-range would be to use min(y) and max(y) as the range boundaries.


  • my browser and the version: Chrome, Safari
  • my operating system: OS X 10 and Windows 10
  • my databases: MySQL
  • Metabase version: 0.28.2
  • Metabase hosting environment: jar
  • Metabase internal database: H2

@tlrobinson tlrobinson changed the title y-axis auto-range bug alway includes "0" zero in range Allow non-zero Y-axis auto range May 29, 2018

@tlrobinson tlrobinson added the Proposal label May 29, 2018


This comment has been minimized.

Copy link

commented May 29, 2018

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 has been minimized.

Copy link

commented May 29, 2018

Thanks for looking into this issue. That would be really helpful.
Yes, I do see the issue with bar charts. That is correct. However, for scatter charts this is normally not misleading.

gkhairulina pushed a commit to griddynamics/metabase that referenced this issue Sep 24, 2018


This comment has been minimized.

Copy link

commented May 15, 2019

I created an question on the forums ( and was directed here.

I would actually prefer and love auto to use min y-axis value. Maybe you could add an additional checkbox [ ] Use minimum y-axis value when Auto y-axis range is checked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.