# Request for setting significant digits on graphs

**URL:** <https://forums.losant.com/t/request-for-setting-significant-digits-on-graphs/784>\
**Category:** Feature Request\
**Created:** [February 22, 2018, 1:53am UTC](https://forums.losant.com/t/request-for-setting-significant-digits-on-graphs/784 "2018-02-22T01:53:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Hoffman1](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@Tim\_Hoffman1](https://forums.losant.com/u/Tim_Hoffman1)\
**Post date:** [February 22, 2018, 1:53am UTC](https://forums.losant.com/t/request-for-setting-significant-digits-on-graphs/784/1 "2018-02-22T01:53:06Z")

</div>

Hi

On Number/Dial gauges you can set the number of significant digits.

Could I request this be added to the time series graph so that we can have it affect both scale and data points.

We are dealing with mm (like 10512) which then gets displayed in scientific notation which causes problems for some of our consumers of the dashboards 😉

Thanks

Tim

---

<div class="post-metadata">

**Author:** ![Michael\_Kuehl](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/michael_kuehl/32/99_2.png) [@Michael\_Kuehl](https://forums.losant.com/u/Michael_Kuehl)\
**Post date:** [February 22, 2018, 2:40pm UTC](https://forums.losant.com/t/request-for-setting-significant-digits-on-graphs/784/2 "2018-02-22T14:40:36Z")

</div>

A good request, I’ve filed a ticket for adding the ability to format those numbers for the time series, bar, and pie charts. Thanks!

---

<div class="post-metadata">

**Author:** ![Tim\_Hoffman1](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@Tim\_Hoffman1](https://forums.losant.com/u/Tim_Hoffman1)\
**Post date:** [February 27, 2018, 11:57pm UTC](https://forums.losant.com/t/request-for-setting-significant-digits-on-graphs/784/3 "2018-02-27T23:57:14Z")

</div>

Could you also provide this for data tables.

---

<div class="post-metadata">

**Author:** ![Michael\_Kuehl](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/michael_kuehl/32/99_2.png) [@Michael\_Kuehl](https://forums.losant.com/u/Michael_Kuehl)\
**Post date:** [February 28, 2018, 12:06am UTC](https://forums.losant.com/t/request-for-setting-significant-digits-on-graphs/784/4 "2018-02-28T00:06:47Z")

</div>

Actually, it is already available in device state tables (and anywhere where templates are used)! You can pass a format string to the ‘format’ helper in the templates.

[Device State Table Config](https://docs.losant.com/dashboards/device-state-table/#configure-block)  
[Template Format Helpers](https://docs.losant.com/workflows/accessing-payload-data/#format-helpers)  
[D3 Format Strings](https://github.com/d3/d3-format#locale_format)

For example, if you did `{{format value '.2f'}}` as the template, the value `10` would be displayed as `10.00`.

---

<div class="post-metadata">

**Author:** ![Tim\_Hoffman1](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@Tim\_Hoffman1](https://forums.losant.com/u/Tim_Hoffman1)\
**Post date:** [February 28, 2018, 12:07am UTC](https://forums.losant.com/t/request-for-setting-significant-digits-on-graphs/784/5 "2018-02-28T00:07:48Z")

</div>

Oh cool. Missed that.
