# Timelion ignores fractional digits

**URL:** <https://discuss.elastic.co/t/timelion-ignores-fractional-digits/234747>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [May 28, 2020, 1:01pm UTC](https://discuss.elastic.co/t/timelion-ignores-fractional-digits/234747 "2020-05-28T13:01:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![judomu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/judomu/32/69287_2.png) [@judomu](https://discuss.elastic.co/u/judomu)\
**Post date:** [May 28, 2020, 1:01pm UTC](https://discuss.elastic.co/t/timelion-ignores-fractional-digits/234747/1 "2020-05-28T13:01:14Z")

</div>

Hello,

I am trying to visualize the average compression ratio. The values are ranging between -1 and 1. Sadly every value with fractional digits is not shown in the graph. Only values like -1, 0 or 1. I have played around with `precision()`, `multiply()` and also with the field definition. The last try was to multiply the numbers from application side but the problem with fractional digits still exists and I think it's the wrong approach ;).

 ![2020-05-28_14-59](https://us1.discourse-cdn.com/elastic/original/3X/9/6/9655cf5120f6972a93285a2889e60479efc3bb64.png) ![2020-05-28_14-54](https://us1.discourse-cdn.com/elastic/original/3X/6/6/666957fee84b081ae569ee75629091480da65188.png) ![2020-05-28_14-52](https://us1.discourse-cdn.com/elastic/original/3X/2/9/29dfd8ce44b55d104edd7bde49dc4a03ed79cbdd.png)

Any help would be awesome! Thanks in advance.

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [May 29, 2020, 8:15pm UTC](https://discuss.elastic.co/t/timelion-ignores-fractional-digits/234747/2 "2020-05-29T20:15:40Z")

</div>

This looks like a bug with Timelion. If the mapping of the `compressionRatio` field is correct in ES (`double`, `float`, `half_float`, `scaled_float`), then the `avg` function in Timelion should be able to handle it mathematically correctly.

Would you mind taking this information to the Kibana issue tracker? [https://github.com/elastic/kibana/issues](https://github.com/elastic/kibana/issues)

Thank you very much,  
-Tim

---

<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:** [June 26, 2020, 8:15pm UTC](https://discuss.elastic.co/t/timelion-ignores-fractional-digits/234747/3 "2020-06-26T20:15:41Z")

</div>

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