Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
  4. <script type="text/javascript">
  5. google.charts.load('current', {'packages':['corechart']});
  6. google.charts.setOnLoadCallback(drawVisualization);
  7.  
  8.  
  9. function drawVisualization() {
  10. // Some raw data (not necessarily accurate)
  11. var data = google.visualization.arrayToDataTable([
  12. ['Month', 'Bolivia', 'Ecuador', 'Madagascar', 'Papua New Guinea', 'Rwanda', 'Average'],
  13. ['2004/05', 165, 938, 522, 998, 450, 614.6],
  14. ['2005/06', 135, 1120, 599, 1268, 288, 682],
  15. ['2006/07', 157, 1167, 587, 807, 397, 623],
  16. ['2007/08', 139, 1110, 615, 968, 215, 609.4],
  17. ['2008/09', 136, 691, 629, 1026, 366, 569.6]
  18. ]);
  19.  
  20. var options = {
  21. title : 'Monthly Coffee Production by Country',
  22. vAxis: {title: 'Cups'},
  23. hAxis: {title: 'Month'},
  24. seriesType: 'bars',
  25. series: {5: {type: 'line'}}
  26. };
  27.  
  28. var chart = new google.visualization.ComboChart(document.getElementById('chart_div'));
  29. chart.draw(data, options);
  30. }
  31. </script>
  32. </head>
  33. <body>
  34. <div id="chart_div" style="width: 900px; height: 500px;"></div>
  35. </body>
  36. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement