There is a javascript solution:

for (var i = 0; i < x.getNumberOfColumns(); i++) {
    if (x.getColumnType() == 'number') {
        for (var j = 0; j < x.getNumberOfRows(); j++) {
            x.setValue(j, i, x.getValue(j, i) * 1);
            x.setFormattedValue(j, i, '' + x.getValue(j, i));
        }
    }
}

I would just keep that in mind in case you run into issues with the numbers 
being input as strings.

On Friday, May 31, 2013 11:01:27 AM UTC-4, A. Farber wrote:
>
> Yes, thank you, but this still doesn't work for float numbers :-( 
>
>
> On Fri, May 31, 2013 at 4:52 PM, asgallant 
> <[email protected]<javascript:>> 
> wrote: 
> > Most charts don't have a problem with it, but there are some that do. 
>  It is 
> > something the visualization team could certainly correct for, but 
> > technically you are breaking the specifications by inputting the numbers 
> as 
> > strings.  As the stockoverflow post says, you can fix the problem by 
> using 
> > the value in an arithmetic operation: 
> > 
> > $val *= 1; 
> > 
>
> > On Friday, May 31, 2013 10:37:41 AM UTC-4, A. Farber wrote: 
> >> 
> http://stackoverflow.com/questions/16859776/how-to-avoid-putting-quotes-around-numbers-with-perl-json-module
>  
> >> 
> >> It seems to me that it is a bug in Google charts: 
> >> why do they misinterpret my numeric values, 
> >> I'd already told that they are "numeric"? 
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to