Request for setting significant digits on graphs


#1

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 :wink:

Thanks

Tim


#2

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!


#3

Could you also provide this for data tables.


#4

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
Template Format Helpers
D3 Format Strings

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


#5

Oh cool. Missed that.