# Kibana histogram with a value to zero

**URL:** https://discuss.elastic.co/t/kibana-histogram-with-a-value-to-zero/20012
**Category:** Elasticsearch
**Created:** [September 30, 2014, 2:09pm UTC](https://discuss.elastic.co/t/kibana-histogram-with-a-value-to-zero/20012 "2014-09-30T14:09:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![samuel\_merlet1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samuel_merlet1/32/1242_2.png) [@samuel\_merlet1](https://discuss.elastic.co/u/samuel_merlet1)
#### Post date: [September 30, 2014, 2:09pm UTC](https://discuss.elastic.co/t/kibana-histogram-with-a-value-to-zero/20012/1 "2014-09-30T14:09:21Z")

</div>

Hi,

I can't figure out how to display a value that is 0 ( zero ) in an  
histogram .

When i do my request i have this :

{  
"took" : 5,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 5,  
"successful" : 5,  
"failed" : 0  
},  
"hits" : {  
"total" : 191,  
"max\_score" : 0,  
"hits" : [  
]  
},  
"facets" : {  
"0" : {  
"\_type" : "date\_histogram",  
"entries" : [  
{  
"time" : 1412072076000,  
"count" : 1,  
"min" : 0,  
"max" : 0,  
"total" : 0,  
"total\_count" : 1,  
"mean" : 0  
},  
{  
"time" : 1412072080000,  
"count" : 2,  
"min" : 2,  
"max" : 2,  
"total" : 2,  
"total\_count" : 1,  
"mean" : 2  
},  
{  
"time" : 1412072170000,  
"count" : 1,  
"min" : 0,  
"max" : 0,  
"total" : 0,  
"total\_count" : 1,  
"mean" : 0  
},  
{  
"time" : 1412079637000,  
"count" : 1,  
"min" : 15,  
"max" : 15,  
"total" : 15,  
"total\_count" : 1,  
"mean" : 15  
},  
{

As you see i have some entries with value max = 0 , but i cant' see them in  
the histogram i only see values \> or \< to zero .  
I tried the "zero fill" options but it render weirds , it had a zero point  
near every other points .

Any help will be really appreciated , thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/73f2e61e-660b-4c46-9628-a6f4ef8c7457%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/73f2e61e-660b-4c46-9628-a6f4ef8c7457%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Dan\_Milon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dan_milon/32/1240_2.png) [@Dan\_Milon](https://discuss.elastic.co/u/Dan_Milon)
#### Post date: [October 2, 2014, 10:04am UTC](https://discuss.elastic.co/t/kibana-histogram-with-a-value-to-zero/20012/2 "2014-10-02T10:04:14Z")

</div>

I'm having the exact same issue.  
Zero values are not drawn on the histogram.

Is this a feature or a bug?  
If I wanted to try and fix this, where should I look in the code?

Thanks,  
Dan.

On Tuesday, September 30, 2014 5:09:21 PM UTC+3, Samuel Merlet wrote:

> Hi,
> 
> I can't figure out how to display a value that is 0 ( zero ) in an  
> histogram .
> 
> When i do my request i have this :
> 
> {  
> "took" : 5,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 191,  
> "max\_score" : 0,  
> "hits" : [  
> ]  
> },  
> "facets" : {  
> "0" : {  
> "\_type" : "date\_histogram",  
> "entries" : [  
> {  
> "time" : 1412072076000,  
> "count" : 1,  
> "min" : 0,  
> "max" : 0,  
> "total" : 0,  
> "total\_count" : 1,  
> "mean" : 0  
> },  
> {  
> "time" : 1412072080000,  
> "count" : 2,  
> "min" : 2,  
> "max" : 2,  
> "total" : 2,  
> "total\_count" : 1,  
> "mean" : 2  
> },  
> {  
> "time" : 1412072170000,  
> "count" : 1,  
> "min" : 0,  
> "max" : 0,  
> "total" : 0,  
> "total\_count" : 1,  
> "mean" : 0  
> },  
> {  
> "time" : 1412079637000,  
> "count" : 1,  
> "min" : 15,  
> "max" : 15,  
> "total" : 15,  
> "total\_count" : 1,  
> "mean" : 15  
> },  
> {
> 
> As you see i have some entries with value max = 0 , but i cant' see them  
> in the histogram i only see values \> or \< to zero .  
> I tried the "zero fill" options but it render weirds , it had a zero point  
> near every other points .
> 
> Any help will be really appreciated , thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2c8fbf3f-16f5-49bc-861b-24ae92c98093%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2c8fbf3f-16f5-49bc-861b-24ae92c98093%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [July 6, 2017, 12:58am UTC](https://discuss.elastic.co/t/kibana-histogram-with-a-value-to-zero/20012/3 "2017-07-06T00:58:42Z")

</div>


