function drawChart()

in content/assets/js/dev-community.js [10:36]


function drawChart() {
  var data = google.visualization.arrayToDataTable([
      ['Release', 'Apple', 'Metamarkets', 'Twitter', 'Mesosphere', 'Huawei', 'Other', 'Microsoft', 'IBM', {'role': 'annotation'}],
      ['0.24', 2, 0, 157, 211, 0, 65, 13, 5, ''],
      ['0.25', 0, 0, 76, 157, 0, 44, 13, 29, ''],
      ['0.26', 0, 0, 48, 205, 0, 67, 60, 20, ''],
      ['0.27', 1, 0, 22, 637, 0, 65, 25, 24, ''],
      ['0.28', 0, 0, 0, 406, 0, 34, 48, 19, ''],
      ['1.0-rc2', 23, 2, 1, 1107, 1, 287, 123, 226, '']
  ])

  // Set chart options.
  var options = {
    'title': 'Commit Breakdown by Organizations and Releases',
    'width': 600,
    'height': 400,
    'isStacked': true,
    'groupWidth': '90%',
    'legend': { position: 'top', maxLines: 30 }
  };

  // Instantiate and draw our chart, passing in some options.
  var chart = new google.visualization.ColumnChart(
      document.getElementById('commit_breakdown_by_organizations_and_releases'));
  chart.draw(data, options);
  drawContributorsChart();
}