here is the call 2 the visualization api numberFormatter:

/** * Returns the instance of Percentage Formatter. * @return {!
treasury.graphs.formatter.Formatter} instance of number formatter. */
treasury.graphs.formatter.Formatter.getPercentageFormatter =
function() {  if (treasury.graphs.formatter.Formatter.numberFormatter)
{    return treasury.graphs.formatter.Formatter.numberFormatter;  } 
treasury.graphs.formatter.Formatter.numberFormatter =      new
treasury.graphs.formatter.Formatter(          'number',          new
google.visualization.NumberFormat({              suffix: '%',         
    negativeColor: 'red',              negativeParens: true,         
    fractionDigits: 2}));  return
treasury.graphs.formatter.Formatter.numberFormatter;};
On Oct 26, 11:12 pm, EZChart <[email protected]> wrote:
> I used your NumberFormat setup and it works fine for 
> me:http://savedbythegoog.appspot.com/?id=e57b8c98cd18091be8797d300125f5d...
> Can you send us a code where this problem reproduces?
>
> On Wed, Oct 26, 2011 at 11:55 PM, 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.

Reply via email to