Is there a way to use the '@@' feature of the ICU decimal formatting?
I want three decimal places and no leading zeroes if less than 1, and
I can't seem to get that using the format option of the hAxis.
On Sep 6, 12:20 pm, asgallant <
drew_gall...@abtassoc.com> wrote:
> If you want a given level of precision (ie, 3 decimal places), use the
> Number Format (
http://code.google.com/apis/chart/interactive/docs/reference.html#num...)
> on columns to set your precision for the tooltips, and use the
> h/vaxis.format option to set the precision for the axes (ex, for bar
> charts:
http://code.google.com/apis/chart/interactive/docs/gallery/barchart.h...
> ).
>
> If you always want to display the same number of digits, regardless of the
> precision of the digits (ie, 3 digits in any place: .123, 3.45, 67.8), then
> you can write a function that takes your data as an input and creates a
> formatted string version of each value with the appropriate number of
> digits. Pass the formatted value back to the dataTable object with the
> #setFormattedValue (
http://code.google.com/apis/chart/interactive/docs/reference.html#Dat...) method