Idea

Mischa Spelt avatar image
4 Likes"
Mischa Spelt suggested Mischa Spelt commented

Option to show histogram bin center

I have a histogram which shows the distribution of an integer variable. I can show that with bin width 1 and offset 0, but then it is not entirely clear if the first bar is value 0 or value 1:

1638437808166.png

So I gave it an offset of -0.5 and then the axis values become weird:

1638437834768.png

Is it possible to add an option that allows me to use the value around which the bin is centered as the tick mark, aligned to the center of the bar?

1638437933423.png


dashboardsfeature requesthistogram
1638437808166.png (9.1 KiB)
1638437834768.png (9.1 KiB)
1638437933423.png (9.1 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Comment

Jordan Johnson avatar image
1 Like"
Jordan Johnson commented

Isn't this a case for a bar chart, rather than a histogram? The bars on a bar chart show data for a discrete value (like 0, 1, or 2). The bar char will show the discrete value for each bar, aligned clearly next to each bar. The bar chart doesn't place the bars on a continuous axis, because the data is discrete (although the size of the bar can be continuous).

1638483573498.png

In contrast, the bars on a histogram show the total number of values within a range; that range is defined by two values. The bars can be placed on a continuous axis, because the data involved could have any value. The axis tick marks show the boundary between buckets.

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.