Take a look at http://code.google.com/apis/chart/interactive/docs/reference.html#formatters . If it doesn't help, please send a code where your problem reproduces.
On Tue, Dec 13, 2011 at 7:39 PM, crystal8407 <[email protected]> wrote: > have the similar problem > don't know how to change the format > > > On 10月27日, 上午5时55分, dennis williamson <[email protected]> wrote: > > Here is my setup: > > > > new google.visualization.NumberFormat({ > > suffix: '%', > > negativeColor: 'red', > > negativeParens: true, > > fractionDigits: 2})); > > > > The number formatter is called inside a call to initDataTable with y- > > axis values of type float. > > > > Example: > > -2.112345 > > > > The display (using hover) over the bar chart shows: > > > > (2.00%) > > > > I can't get the number formatter to NOT truncate the value and to > > instead round to the nearest hundredth. What am I not doing > > correctly? > > -- > 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. > > -- 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.
