# Only show integer values in visualization

**URL:** <https://discuss.elastic.co/t/only-show-integer-values-in-visualization/142942>\
**Category:** Kibana\
**Created:** [August 3, 2018, 4:11pm UTC](https://discuss.elastic.co/t/only-show-integer-values-in-visualization/142942 "2018-08-03T16:11:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hferazza](https://avatars.discourse-cdn.com/v4/letter/h/9d8465/32.png) [@hferazza](https://discuss.elastic.co/u/hferazza)\
**Post date:** [August 3, 2018, 4:11pm UTC](https://discuss.elastic.co/t/only-show-integer-values-in-visualization/142942/1 "2018-08-03T16:11:52Z")

</div>

Hi,

I want to show float value in metric visualization. Index Pattern is default configuration (0,0.[000]). In dicovery section it´s ok:  
 ![discovery](https://us1.discourse-cdn.com/elastic/original/3X/d/4/d40997e21de6162c77823d483d730b2eaf6f124d.PNG)

But in the dashboard, no:

 ![dash](https://us1.discourse-cdn.com/elastic/original/3X/7/0/7083584f17f55488d59f2115c94be6e5a9026a3c.PNG)

What I do?

Thanks,  
Henrique

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [August 3, 2018, 4:24pm UTC](https://discuss.elastic.co/t/only-show-integer-values-in-visualization/142942/2 "2018-08-03T16:24:23Z")

</div>

Hi @hferazza,

Can you check your index mapping? I can reproduce this when I set the field is mapped as a `long`, or similar whole-number data type. However, if I update the index mapping to be a `float`, then the visualization will show the decimal.

Spencer explains why this happens in more detail [here](https://github.com/elastic/kibana/issues/5593#issuecomment-162963647)

---

<div class="post-metadata">

**Author:** ![hferazza](https://avatars.discourse-cdn.com/v4/letter/h/9d8465/32.png) [@hferazza](https://discuss.elastic.co/u/hferazza)\
**Post date:** [August 3, 2018, 5:17pm UTC](https://discuss.elastic.co/t/only-show-integer-values-in-visualization/142942/3 "2018-08-03T17:17:34Z")

</div>

It really was like "long", it worked.

Thanks,  
@hferazza

---

<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 31, 2018, 5:17pm UTC](https://discuss.elastic.co/t/only-show-integer-values-in-visualization/142942/4 "2018-08-31T17:17:39Z")

</div>

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