On Tuesday, 27 September 2011 03:25:43 UTC-4, Swapnil Patil wrote:
>
> 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).
But this is not working when i am using behind code
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.