Do you mean you want the tooltips to show a rounded value? If so, then you
can use a NumberFormatter on the relevant columns in your DataTable:
// round the numbers to 2 decimal places
var formatter = new google.visualization.NumberFormat({pattern: '#.##'});
// format column 1 of the DataTable
formatter.format(data, 1);
On Wednesday, August 14, 2013 3:42:14 AM UTC-4, Florian wrote:
>
> Hello,
>
> i have a geochart and i want the legend to show rounded values and not the
> exact value.
> Can Someone help me how to do this? is there a funktion?
>
>> Math.min.apply(Math, jsonData);
>>
> somethink like this don't work because it's an object of the shema:
> https://developers.google.com/chart/interactive/docs/reference#dataparam
> can someone may help me?
> thanks in advance
> florian
>
--
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.
For more options, visit https://groups.google.com/groups/opt_out.