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?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/LXRx5BsKtngJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to