# Why Can't Histogram Interval Be Decimal

**URL:** <https://discuss.elastic.co/t/why-cant-histogram-interval-be-decimal/243146>\
**Category:** Elasticsearch\
**Created:** [July 30, 2020, 3:04am UTC](https://discuss.elastic.co/t/why-cant-histogram-interval-be-decimal/243146 "2020-07-30T03:04:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ethan777100](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethan777100/32/70366_2.png) [@Ethan777100](https://discuss.elastic.co/u/Ethan777100)\
**Post date:** [July 30, 2020, 3:04am UTC](https://discuss.elastic.co/t/why-cant-histogram-interval-be-decimal/243146/1 "2020-07-30T03:04:25Z")

</div>

Continuing the discussion from [Histogram interval](https://discuss.elastic.co/t/histogram-interval/117475/2):

I disagree with the constraint that the interval must be a decimal.

I have a use case whose data is time duration which nominally falls between 0-5seconds. i also wanna plot a histogram about it.

So in this context, a good resolution for the many data points will be in 1 decimal/2 decimal places.

Wasn't this even thought of earlier?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 27, 2020, 3:04am UTC](https://discuss.elastic.co/t/why-cant-histogram-interval-be-decimal/243146/2 "2020-08-27T03:04:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
