thanx for the feedback!  Here is what i have.

The 'charts' arg that is passed contains a bundle that contains 9
arrays of len=2
each of which contains a string value [0], and a number value [1].
the number value
is a type float which can be positive or negative:  -2.112345 or
5.32123 for example.
One thing to bear in mind.  The precision of the floats goes to 15
digits.  I don't know
if that's important to know.

thanx in advance...

/** drawing a bar chart */

treasury.asset_allocation_report.render.drawBarCharts = function(
    charts, domIds) {
    var size = new goog.math.Size(550, 400);
    // Need to figure out what ids to pass.
    for (var i = 0; i < domIds.length; i++) {
      var visualization = new treasury.graphs.Visualization(charts[i],
size);
      visualization.setDomId(domIds[i]);
      visualization.initDataTable([
 
treasury.graphs.formatter.Formatter.getPercentageFormatter()]);
      treasury.graphs.Charts.drawBarChart(visualization);
  }
};

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