# Why there're some decimals in kibana when I choose @timestamp per hour?

**URL:** <https://discuss.elastic.co/t/why-therere-some-decimals-in-kibana-when-i-choose-timestamp-per-hour/145481>\
**Category:** Kibana\
**Created:** [August 22, 2018, 4:01am UTC](https://discuss.elastic.co/t/why-therere-some-decimals-in-kibana-when-i-choose-timestamp-per-hour/145481 "2018-08-22T04:01:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xiaomeng\_Bian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xiaomeng_bian/32/34689_2.png) [@Xiaomeng\_Bian](https://discuss.elastic.co/u/Xiaomeng_Bian)\
**Post date:** [August 22, 2018, 4:01am UTC](https://discuss.elastic.co/t/why-therere-some-decimals-in-kibana-when-i-choose-timestamp-per-hour/145481/1 "2018-08-22T04:01:25Z")

</div>

😀I have an index with about 10,000 csv data which contains timestamp, as I want to see the trend of count in one day, I choose @timestamp per hour in kibana, then I find that decimals appear in the histogram like this:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/c/fc3ab99ac445f5a38c6fa0a3e65f48a6f56771c2.png)  
it makes me very confused, why and how kibana figure out decimal? I think integer is reasonable...🤔

---

<div class="post-metadata">

**Author:** ![Xiaomeng\_Bian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xiaomeng_bian/32/34689_2.png) [@Xiaomeng\_Bian](https://discuss.elastic.co/u/Xiaomeng_Bian)\
**Post date:** [August 22, 2018, 7:04am UTC](https://discuss.elastic.co/t/why-therere-some-decimals-in-kibana-when-i-choose-timestamp-per-hour/145481/2 "2018-08-22T07:04:54Z")

</div>

nobody ？😂

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [August 22, 2018, 4:02pm UTC](https://discuss.elastic.co/t/why-therere-some-decimals-in-kibana-when-i-choose-timestamp-per-hour/145481/3 "2018-08-22T16:02:45Z")

</div>

This may seem confusing, but here's what's happening:

You've selected "hourly" as the interval. It looks like your time range is about three weeks, which means that if we were to show a bar for every interval, that'd be about 500 bars! That's too many to show, so behind the scenes we automatically scale the interval to something that doesn't create so many bars. In this case, we select 3 hours. (Notice the "Scaled to 3 hours" text next to the interval?)

Here's where it gets a bit controversial. Since you've selected "Hourly", we assume you really want to see the count per hour, not per 3 hours. So we take the count for that 3-hour period and divide it by 3 to give you the average count per hour in that time range.

There's some discussion that has happened around this, and whether we should just show the count for that 3-hour period instead of showing the average per hour for that 3-hour period.

If you'd like to add to the discussion, feel free to chime in here: [https://github.com/elastic/kibana/issues/8618](https://github.com/elastic/kibana/issues/8618)

---

<div class="post-metadata">

**Author:** ![Xiaomeng\_Bian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xiaomeng_bian/32/34689_2.png) [@Xiaomeng\_Bian](https://discuss.elastic.co/u/Xiaomeng_Bian)\
**Post date:** [August 23, 2018, 3:31am UTC](https://discuss.elastic.co/t/why-therere-some-decimals-in-kibana-when-i-choose-timestamp-per-hour/145481/4 "2018-08-23T03:31:11Z")

</div>

Oh ~I see 😀😀 Thanks sooooo much for your clear explanation~~

---

<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:** [September 20, 2018, 3:31am UTC](https://discuss.elastic.co/t/why-therere-some-decimals-in-kibana-when-i-choose-timestamp-per-hour/145481/5 "2018-09-20T03:31:12Z")

</div>

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