serenajiang opened a new issue #14758: URL: https://github.com/apache/superset/issues/14758
**Is your feature request related to a problem? Please describe.** The behavior of the histogram chart is sometimes confusing when dealing with integer values. For example, for a chart with x-axis values [1,2,3,4,5], 4 and 5 are grouped into the same bin even when 5 bins are specified:  Additionally, since the range is like **Describe the solution you'd like** Users should be able to specify the range for the x-axis in `Chart Options` For the above example, a user would be able to specify the range as `[1, 6)` with `5` bins. This would break the range into the bins [1,2), [2,3), [3, 4), [4, 5), [5, 6). This is also useful because it allows users to ensure that the range of the chart not change as the data changes. Users would also be able to make sure the ranges of charts are aligned in a dashboard. **Describe alternatives you've considered** For the specific problem I mentioned, we could fix it by by tweaking bin calculations. Ex. if the max is an integer, use max + 1 for the x-axis max. However, this solution probably does not apply to all use cases, and it doesn't provide the other benefits mentioned above. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
