On Monday, August 3, 2015 at 4:39:50 PM UTC+3, Ian Njuguna wrote:
>
> Hi,
>
> I have user-inputs that I want to plot into a piechart using google charts.
> The HTML form has the following attributes - just to name one.
>
> <input type="radio" " id="input_70" name="pgrowth" value="Personal Growth"
> />
>
> The user is supposed to give a rating (0 - 9) of how they are doing in a
> particular "area"
>
> I've tried this method to capture the varible (user input)
>
> function drawChart() {
> var data = google.visualization.arrayToDataTable([
> ['Area', 'Percentage'],
> ['Personal Growth',$("#input_70").val()],
>
]);
var options = {
title: 'My Daily Activities',
pieHole: 0.4,
};
var chart = new
google.visualization.PieChart(document.getElementById('donutchart'));
chart.draw(data, options);
}
This is however not working for some reason.
I've attached the whole HTML file.
Kindly assist.
--
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/d/optout.
Title: Form
-
-
This Assessment contains 9 areas that, together, represent one way of describing a whole life. This exercise measures your level of satisfactionand range of _expression_ in these areas as a snapshot in time. As you work through this assessment you will find areas where you can acknowledgeyourself for the success you have created and areas where you may want to improve your level of satisfaction.
Rank each of the statements below on a scale from 1 (Highly Disagree) to 10 (Highly Agree).
-
Personal Details
-
-
-
-
-
Career
-
-
-
-
-
-
Fun & Recreation
-
-
-
-
-
Money & Finances
-
-
-
-
-
Physical Environment
-
-
-
-
-
Personal Growth
-
-
-
-
-
Health & Wellbeing
-
-
-
-
-
-
Friends
-
-
-
-
-
-
Family
-
-
-
-
-
Significant Other
-
-
-
-
-
The Results
-
-
-
-
-
-
-
-
-
-
To get a snapshot of your life,transfer your percetage score from the different assessment areas to the respective area on the Assement Wheel (Download it Here).Look at your completed wheel. If your life is riding on this wheel, how bumpy is the ride?
-
Feedback
-
-
-
-
-
