# Histogram visualization with custom buckets/count

**URL:** https://discuss.elastic.co/t/histogram-visualization-with-custom-buckets-count/140369
**Category:** Kibana
**Created:** [July 17, 2018, 4:51pm UTC](https://discuss.elastic.co/t/histogram-visualization-with-custom-buckets-count/140369 "2018-07-17T16:51:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![espogian](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@espogian](https://discuss.elastic.co/u/espogian)
#### Post date: [July 17, 2018, 4:51pm UTC](https://discuss.elastic.co/t/histogram-visualization-with-custom-buckets-count/140369/1 "2018-07-17T16:51:20Z")

</div>

Hi there,

I loaded a index like this on Elasticsearch:

```
ID state timestamp
1234 A 10:10 
3456 B 10:14
4635 B 10:54    

```

Now what I'm trying to do is a histogram visualization to show how many IDs have 10 state = A, how many have 20 state = A, etc.  
In other words, a histogram displaying this table here:

```
bucket (X-axis) no. of occurences of state A per id (Y-axis)
10 342
20 463
... ...

```

Is this possible natively with Kibana?

---

<div class="post-metadata">

### Author: ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)
#### Post date: [July 17, 2018, 10:35pm UTC](https://discuss.elastic.co/t/histogram-visualization-with-custom-buckets-count/140369/2 "2018-07-17T22:35:57Z")

</div>

Hi there, I'm sorry I'm not sure I understand. What do the buckets on your X-axis represent?

Thanks,  
CJ

---

<div class="post-metadata">

### Author: ![espogian](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@espogian](https://discuss.elastic.co/u/espogian)
#### Post date: [July 18, 2018, 6:23am UTC](https://discuss.elastic.co/t/histogram-visualization-with-custom-buckets-count/140369/3 "2018-07-18T06:23:32Z")

</div>

Hi, the buckets on X-axis represent the number of times the same “state” is showing per each ID in the timeframe specified. And the Y-axis represents the count of unique IDs.  
So, for instance, in the first row of my example we’ve got 342 unique IDs which have 10 occurrences of state A in the timeframe specified.

Thank you

---

<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 15, 2018, 6:23am UTC](https://discuss.elastic.co/t/histogram-visualization-with-custom-buckets-count/140369/4 "2018-08-15T06:23:33Z")

</div>

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