var formatter = new google.visualization.NumberFormat(
            { prefix: '$'}
        );
formatter.format(data, 1);

Thanks everyone.
Used this to format the values. But this only displays $ sign in tool
tip only and not on X Axis and Y axis labels.

On Sep 26, 5:47 pm, asgallant <[email protected]> wrote:
> To format the axes, set the h/vAxis.format property of the options:
>
> hAxis: {format: '$#,###'}
> vAxis: {format: '$#,###'}
>
> Format takes an ICU pattern 
> set<http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details>to 
> format the values (this is different from
> *data* formatting using DataTable#NumberFormat method).

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