When you create a DataTable from the query results, you can format the 
output with a NumberFormatter:

var formatter = new google.visualization.NumberFormat({pattern: '#.##'});
// format column 1 in DataTable "data"
formatter.format(data, 1);

On Thursday, September 19, 2013 7:59:17 AM UTC-4, khamosh wrote:
>
> hello every one 
> I have query like this:
>
> function createQueryCityName(cityName) { 
>
>  var query = new google.visualization.
>
>  Query( "http://api.XXX.com/XXX/datasource?table="; +
>
>   cityName);
>
>  query.setQuery("select ecoadmin_building_name," +
>
>   " sum(cost_reportings_cost) group by ecoadmin_building_name");
>
>  console.log(query);
>
>     return query;
>
>   }
>
> this query send me the " sum(cost_reportings_cost) " with Many decimal but 
> I want to send it for my piechart with 2 decimal.
>
> could you help me???
>
>
>

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

Reply via email to