Tihauan / jsgauge

Automatically exported from code.google.com/p/jsgauge
0 stars 0 forks source link

How to view a float value in Gauge #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
the value should appear on the gauge like 55.63%

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by anandv...@gmail.com on 26 Nov 2012 at 10:54

GoogleCodeExporter commented 9 years ago
You can use the valueFormat option for this. For example:

     valueFormat: function (value, decimals) {
                      return value.toFixed(decimals) + '%';
                  }

Original comment by justin.e...@gmail.com on 28 Nov 2012 at 4:07