# Can I set the Y-axis to show integer values only?

**URL:** <https://discuss.elastic.co/t/can-i-set-the-y-axis-to-show-integer-values-only/97063>\
**Category:** Kibana\
**Created:** [August 15, 2017, 6:55am UTC](https://discuss.elastic.co/t/can-i-set-the-y-axis-to-show-integer-values-only/97063 "2017-08-15T06:55:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GrahamHannington](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grahamhannington/32/4404_2.png) [@GrahamHannington](https://discuss.elastic.co/u/GrahamHannington)\
**Post date:** [August 15, 2017, 6:55am UTC](https://discuss.elastic.co/t/can-i-set-the-y-axis-to-show-integer-values-only/97063/1 "2017-08-15T06:55:14Z")

</div>

I want a vertical bar chart of a count of documents over time—a date histogram with auto time interval—with each bar split according to a string field value: top 20 error codes.

I can do that, but, for some time ranges, my current sample data has 0 errors or only 1 error per bucket, in which case and the Y-axis shows the values "0, 0.1, 0.2, 0.3, ... 1".

I want the Y-axis to to display just "0" and "1"; those non-integer values make no sense for a count. Can I set the Y-axis to show integer values only? I'm using Elastic 5.5.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 15, 2017, 7:24am UTC](https://discuss.elastic.co/t/can-i-set-the-y-axis-to-show-integer-values-only/97063/2 "2017-08-15T07:24:40Z")

</div>

As this is a Kibana question I suggest you edit your post and move it to the Kibana category.

---

<div class="post-metadata">

**Author:** ![GrahamHannington](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grahamhannington/32/4404_2.png) [@GrahamHannington](https://discuss.elastic.co/u/GrahamHannington)\
**Post date:** [August 15, 2017, 10:48am UTC](https://discuss.elastic.co/t/can-i-set-the-y-axis-to-show-integer-values-only/97063/3 "2017-08-15T10:48:07Z")

</div>

Ouch, thanks for pointing that out. My bad. Done.

---

<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 12, 2017, 10:48am UTC](https://discuss.elastic.co/t/can-i-set-the-y-axis-to-show-integer-values-only/97063/4 "2017-09-12T10:48:15Z")

</div>

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