# Kibana Field Formatting : Display Limited Decimal Points For Number Field Type

**URL:** <https://discuss.elastic.co/t/kibana-field-formatting-display-limited-decimal-points-for-number-field-type/289792>\
**Category:** Kibana\
**Created:** [November 22, 2021, 9:52am UTC](https://discuss.elastic.co/t/kibana-field-formatting-display-limited-decimal-points-for-number-field-type/289792 "2021-11-22T09:52:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitdevnalkar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankitdevnalkar/32/46158_2.png) [@ankitdevnalkar](https://discuss.elastic.co/u/ankitdevnalkar)\
**Post date:** [November 22, 2021, 9:52am UTC](https://discuss.elastic.co/t/kibana-field-formatting-display-limited-decimal-points-for-number-field-type/289792/1 "2021-11-22T09:52:02Z")

</div>

I have a number field and I want to change the color of it. I am using Kibana field formatting.

While changing color, I am unable to find a way to limit the decimal points to 5 digits. For example  
`2.62386`

Can anyone help me figure this out?

Here is what I set in the formatted field :

 ![Selection_313](https://us1.discourse-cdn.com/elastic/original/3X/6/b/6b7d9d14f634fe93df081a8fea5e12c9e4643aa0.png)

Here is the output I get :

 ![Selection_314](https://us1.discourse-cdn.com/elastic/original/3X/5/b/5b7b9516f74b77bed0207ee103a58507223ad8ba.png)

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [November 23, 2021, 10:35am UTC](https://discuss.elastic.co/t/kibana-field-formatting-display-limited-decimal-points-for-number-field-type/289792/2 "2021-11-23T10:35:07Z")

</div>

Hi @ankitdevnalkar

unfortunately the `Color` formatter cannot express a number format template yet, you can track the issue here: [Add Numeral.js format pattern to Color format of number · Issue #8565 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/8565)

A possible alternative, if you are only interested in showing those colored field values on tables, is the Lens table coloring feature, which comes with a custom palette editor. Compared to the Color format you can either color the text or the background, not both together, but it is still a valid alternative.  
Here's an example in action:

 ![Screenshot 2021-11-23 at 11.31.07](https://us1.discourse-cdn.com/elastic/original/3X/5/6/566b6692519f636a1b9c81253a3980d67812c467.png)

Because it's a table feature, you can still take advantage of the Lens formatter as shown in the picture.

---

<div class="post-metadata">

**Author:** ![ankitdevnalkar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankitdevnalkar/32/46158_2.png) [@ankitdevnalkar](https://discuss.elastic.co/u/ankitdevnalkar)\
**Post date:** [November 23, 2021, 4:30pm UTC](https://discuss.elastic.co/t/kibana-field-formatting-display-limited-decimal-points-for-number-field-type/289792/3 "2021-11-23T16:30:45Z")

</div>

@Marco_Liberati thanks for the workaround !!

---

<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:** [December 21, 2021, 4:31pm UTC](https://discuss.elastic.co/t/kibana-field-formatting-display-limited-decimal-points-for-number-field-type/289792/4 "2021-12-21T16:31:27Z")

</div>

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