Google Chart API - Answer

Your client, DataSet Corp, has asked for an interactive web based chart showing the change in revenue from 2005 until now. They would also like the overall average revenue to be reflected in the chart. Be sure to add a title, label axes, and reflect the red and black color scheme used by DSC.

by shakedk

HTML

<script src="http://www.google.com/jsapi?ext.js"></script>
<div id="chart"></div>

CSS

#chart {
    width: 900px;
    height:500px;
}

JavaScript

function drawChart() {
    var data = new google.visualization.DataTable();
    data.addColumn('number', 'Bus Volues');
    data.addColumn('number', 'Bus Speed (kph)');
    data.addColumn('number', 'kuku');
    data.addRows([
    [6,32,5],
[6,22,5],
[10,18,5],
[4,34,5],
[1,22,5],
[9,30,5],
[6,20,5],
[9,33,5],
[10,21,5],

                 ]);
                 
                 
  var view = new google.visualization.DataView(data);
  view.setColumns([0, 1, 2]);
    
    var options = {
/*       width: 800,
      height: 500,
      title: 'Correlation between commercial bus speed (Mean Kph) and bus volumes',      
      legend: 'none',
            hAxis: {title: 'Bus volumes'},
      vAxis: {title: 'Bus Speed (kph)'}, */
          seriesType: 'scatter',
    series: {
      1: {
        type: 'line'
      }
    }
    }
    
  var chart = new google.visualization.ComboChart(document.getElementById('chart'));
  chart.draw(view, options);
}

google.load('visualization', '1', {packages: ['corechart'], callback: drawChart});