Created
August 11, 2010 19:38
-
-
Save etagwerker/519584 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bars_data = new google.visualization.DataTable(); | |
bars_data.addColumn('string', 'Month'); | |
bars_data.addColumn('number', 'Average response %'); | |
bars_data.addRows(6); | |
bars_data.setValue(0, 0, 'March'); | |
bars_data.setValue(0, 1, 0); | |
bars_data.setValue(1, 0, 'April'); | |
bars_data.setValue(1, 1, 3); | |
bars_data.setValue(2, 0, 'May'); | |
bars_data.setValue(2, 1, 1); | |
bars_data.setValue(3, 0, 'June'); | |
bars_data.setValue(3, 1, 0); | |
bars_data.setValue(4, 0, 'July'); | |
bars_data.setValue(4, 1, 2); | |
bars_data.setValue(5, 0, 'August'); | |
bars_data.setValue(5, 1, 0); | |
var bars_chart = new google.visualization.ColumnChart(document.getElementById('visualization')); | |
bars_chart.draw(bars_data, {width: 429, height: 308, title: 'Response Rate by Months', titleFontSize: 14, legend: 'none', colors: ['#94C04B', 'black', 'green', 'black', 'green', 'red'], hAxis: {title: 'Months', titleColor: 'black'}, vAxis: {title: '', minValue: 0, maxValue: 100} }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment