There are a lot of strong opinions regarding marijuana production. If you have positive comments, we’d like to hear from you. Please add your comment below.
// Load the Visualization API and the corechart package. google.charts.load('current', {'packages':['corechart']});
// Set a callback to run when the Google Visualization API is loaded.
// Callback that creates and populates a data table, // instantiates the pie chart, passes in the data and // draws it. //Question 1: Has local public opinion changed as a result of the production of marijuana? google.charts.setOnLoadCallback(q1); function q1() { // Create the data table. var data = google.visualization.arrayToDataTable([ ['Response', 'Absolutely agree', 'Moderately agree', 'Neutral', 'Moderately disagree', 'Absolutely Disagree' ], ['Response', 171, 152, 60, 60, 58] ]);
var options = { isStacked: 'percent', height: 150, legend: {position: 'top', maxLines: 3, textStyle: {fontSize: 10}}, hAxis: { minValue: 0, ticks: [{v:0, f:'Agree'}, {v:.7046, f:'Neutral'}, {v:1, f:'Disagree'}] }, series: { 0:{color:'#71BAFF'}, 1:{color:'#94C5D1'}, 2:{color:'#B8D0A3'}, 3:{color:'#DBDB75'}, 4:{color:'#FFE747'} } };
// Instantiate and draw our chart, passing in some options. var chart = new google.visualization.BarChart(document.getElementById('chart_q1')); chart.draw(data, options); }
//Question 2: Has local production changed the way youth view marijuana? google.charts.setOnLoadCallback(q2); function q2() { // Create the data table. var data = google.visualization.arrayToDataTable([ ['Response', 'Absolutely agree', 'Moderately agree', 'Neutral', 'Moderately disagree', 'Absolutely Disagree' ], ['Response', 190, 111, 70, 53, 75] ]);
var options = { isStacked: 'percent', height: 150, legend: {position: 'top', maxLines: 3, textStyle: {fontSize: 10}}, hAxis: { minValue: 0, ticks: [{v:0, f:'Agree'}, {v:.67335, f:'Neutral'}, {v:1, f:'Disagree'}] }, series: { 0:{color:'#71BAFF'}, 1:{color:'#94C5D1'}, 2:{color:'#B8D0A3'}, 3:{color:'#DBDB75'}, 4:{color:'#FFE747'} } };
// Set chart options //var options = {'title':'How Much Pizza I Ate Last Night', 'width':400, 'height':300};
// Instantiate and draw our chart, passing in some options. var chart = new google.visualization.BarChart(document.getElementById('chart_q2')); chart.draw(data, options); }
//Question 3: Has the environment been effected by the production of marijuana? google.charts.setOnLoadCallback(q3); function q3() { // Create the data table. var data = google.visualization.arrayToDataTable([ ['Response', 'Absolutely agree', 'Moderately agree', 'Neutral', 'Moderately disagree', 'Absolutely Disagree' ], ['Response', 207, 81, 37, 67, 109] ]);
var options = { isStacked: 'percent', height: 150, legend: {position: 'top', maxLines: 3, textStyle: {fontSize: 10}}, hAxis: { minValue: 0, ticks: [{v:0, f:'Agree'}, {v:.61185, f:'Neutral'}, {v:1, f:'Disagree'}] }, series: { 0:{color:'#71BAFF'}, 1:{color:'#94C5D1'}, 2:{color:'#B8D0A3'}, 3:{color:'#DBDB75'}, 4:{color:'#FFE747'} } };
// Set chart options //var options = {'title':'How Much Pizza I Ate Last Night', 'width':400, 'height':300};
// Instantiate and draw our chart, passing in some options. var chart = new google.visualization.BarChart(document.getElementById('chart_q3')); chart.draw(data, options); }
//Question 4: Has production of marijuana been positive or negative as it relates to property values? google.charts.setOnLoadCallback(q4); function q4() { // Create the data table. var data = google.visualization.arrayToDataTable([ ['Response', 'Positive', 'Moderately positive', 'Neutral', 'Moderately negative', 'Negative' ], ['Response', 83, 55, 84, 76, 203] ]);
var options = { isStacked: 'percent', height: 150, legend: {position: 'top', maxLines: 3, textStyle: {fontSize: 10}}, hAxis: { minValue: 0, ticks: [{v:0, f:'Positive'}, {v:.35935, f:'Neutral'}, {v:1, f:'Negative'}] }, series: { 0:{color:'#71BAFF'}, 1:{color:'#94C5D1'}, 2:{color:'#B8D0A3'}, 3:{color:'#DBDB75'}, 4:{color:'#FFE747'} } };
// Set chart options //var options = {'title':'How Much Pizza I Ate Last Night', 'width':400, 'height':300};
// Instantiate and draw our chart, passing in some options. var chart = new google.visualization.BarChart(document.getElementById('chart_q4')); chart.draw(data, options); }
//Question 5: What has been the overall effects of the production of marijuana on youth? google.charts.setOnLoadCallback(q5); function q5() { // Create the data table. var data = google.visualization.arrayToDataTable([ ['Response', 'Positive', 'Moderately positive', 'Neutral', 'Moderately negative', 'Negative' ], ['Response', 38, 45, 104, 77, 237] ]);
var options = { isStacked: 'percent', height: 150, legend: {position: 'top', maxLines: 3, textStyle: {fontSize: 10}}, hAxis: { minValue: 0, ticks: [{v:0, f:'Positive'}, {v:.2694, f:'Neutral'}, {v:1, f:'Negative'}] }, series: { 0:{color:'#71BAFF'}, 1:{color:'#94C5D1'}, 2:{color:'#B8D0A3'}, 3:{color:'#DBDB75'}, 4:{color:'#FFE747'} } };
// Set chart options //var options = {'title':'How Much Pizza I Ate Last Night', 'width':400, 'height':300};
// Instantiate and draw our chart, passing in some options. var chart = new google.visualization.BarChart(document.getElementById('chart_q5')); chart.draw(data, options); }
//Question 6: Has the production of marijuana had a positive or negative effect on the environment? google.charts.setOnLoadCallback(q6); function q6() { // Create the data table. var data = google.visualization.arrayToDataTable([ ['Response', 'Positive', 'Moderately positive', 'Neutral', 'Moderately negative', 'Negative' ], ['Response', 76, 56, 95, 67, 207] ]);
var options = { isStacked: 'percent', height: 150, legend: {position: 'top', maxLines: 3, textStyle: {fontSize: 10}}, hAxis: { minValue: 0, ticks: [{v:0, f:'Positive'}, {v:.3583, f:'Neutral'}, {v:1, f:'Negative'}] }, series: { 0:{color:'#71BAFF'}, 1:{color:'#94C5D1'}, 2:{color:'#B8D0A3'}, 3:{color:'#DBDB75'}, 4:{color:'#FFE747'} } };
// Set chart options //var options = {'title':'How Much Pizza I Ate Last Night', 'width':400, 'height':300};
// Instantiate and draw our chart, passing in some options. var chart = new google.visualization.BarChart(document.getElementById('chart_q6')); chart.draw(data, options); }
Has local public opinion changed as a result of the production of marijuana?
Has local production changed the way youth view marijuana?
Has the environment been effected by the production of marijuana?
Has production of marijuana been positive or negative as it relates to property values?
What has been the overall effects of the production of marijuana on youth?
Has the production of marijuana had a positive or negative effect on the environment?