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 <[email protected]> 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
> (or process your data before creating the dataTable object and build the
> dataTable by passing the {v: value, f: 'formatted value'} object to each
> cell).  The axis values are auto-calculated and aside from using the axis
> format option there is nothing you can do to control the precision.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to