To the best of my knowledge, you can't do integer operations in the query
language. Once the data is retrieved, you can use javascript to modify it
and "fix" the division if you need to. As an example, if you have a
DataTable "data" with the result of a division in column 1, you can fix it
with this:
for (var i = 0; i < data.getNumberOfRows(); i++) {
data.setValue(i, 1, Math.floor(data.getValue(i, 1)));
}
On Sunday, August 4, 2013 1:20:48 AM UTC-4, olemis wrote:
>
> Is there any way to perform integer division (i.e. div , mod
> operators) using the Google Charts query language ? I've read the docs
> and found nothing about that , only / arithmetic operator .
>
> TIA
>
> --
> Regards,
> Olemis - @olemislc
>
> Apache⢠Bloodhound contributor
> http://issues.apache.org/bloodhound
> http://blood-hound.net
>
> Blog ES: http://simelo-es.blogspot.com/
> Blog EN: http://simelo-en.blogspot.com/
>
> Featured article:
>
--
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.