John Maris
unread,Jun 13, 2012, 4:01:10 AM6/13/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-visua...@googlegroups.com
My problem might be simple but i really don't know if google charts api calculating it the right way.
I have a question with multiple choices and I want to create a bar chart with the answers.
I'm returning a datatable from my webservice to the visualization, with the sum of each answer.
A snapshot from the json:
{"cols":[
{"id":"choice","label":"Question","type":"string"},{"id":"sum","label":"Summary","type":"number"}
],
"rows":[
{"c":[{"v":"Answer 1"},{"v":11}]},
{"c":[{"v":"Answer 2"},{"v":16}]},
{"c":[{"v":"Answer 3"},{"v":12}]},
]
}
The percentage for each answer is calculated in conjunction with the total answers number by the visualization api? ( Answer / total number of answers )
Is this the right way? Doesn't have to be calculated in conjunction with the total users answered the question?