I have a motion chart that shows population size of country as the
bubble size.  I'd like to format the way numbers are formatted on the
visualization.  For example, for 2004, China's population is
"1.326856173 B" and I'd like to be able to format it as simply "1.33
B".   I have other numeric values I'd like to format as well (e.g. aid
dollars given to country in USD with two decimals as Y axis, and
income as X axis with no decimals.

I know how to get a formatted value which I'd like to display (not the
isue).  The issue is I'm not sure how to get motion chart to apply
it.  I have unsuccessfully used two approaches:

This doesn't seem to work:

data.setValue(row, 4, nPopulation);
data.setFormattedValue(row, 4, formatAmt(nPopulation));

Nor this:

data.setCell(row, 4, nPopulation, formatAmt(nPopulation));

[ Note that formatAmt(nPopulation) correctly returns the string which
is the formatted value I'd like to show it - e.g. for China "1.33 B" ]

Any help much appreciated.

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