Histogram Bins

Histogram Support

While there are bar graphs, I can’t seem to find support for histograms, as in grouped bins of a number. My relevant data consists of a single column. Now while I’ve been able to get a tally going for the values I haven’t been able to group the data into bins.

For example, for the data {1,2,2,3,3,3,4,4,5} it’s easy to see the bar graph would look something like follows only vertical.

1: *
2: **
3: ***
4: **
5: *

My issue is that my data is VERY sparse

so for example it might be something like {1.1,2.2,2.3,3.3,3.4,3.5,4.4,4,5}

so I end up getting a graph like follows:

1.1: *
2.2: *
2.3: *
3.3: *
3.4: *
3.5: *
4.4: *
4,5: *

Is there any way to group my data into equal sized bins depending on the range of data being put into a bar graph?

we have a tracking issue open for this https://github.com/metabase/metabase/issues/798

But don’t have it on a specific milestone. In the meantime, we suggest using a sql query for this and explicitly binning the values yourself.