{"size": 627, "ext": "js", "max_stars_repo_path": "pkg/dashboard/assets/js/charts.js", "max_stars_repo_name": "mkramlich/polaris", "max_stars_repo_stars_event_min_datetime": "2019-07-11T08:07:10.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T20:44:18.000Z", "max_issues_repo_path": "pkg/dashboard/assets/js/charts.js", "max_issues_repo_name": "mkramlich/polaris", "max_issues_repo_issues_event_min_datetime": "2019-07-10T16:46:52.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T13:04:21.000Z", "max_forks_repo_path": "pkg/dashboard/assets/js/charts.js", "max_forks_repo_name": "mfacenet/polaris", "max_forks_repo_forks_event_min_datetime": "2019-07-10T23:59:50.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T11:08:36.000Z"}
{"max_stars_count": 1809, "max_issues_count": 492, "max_forks_count": 170, "avg_line_length": 21.6206896552, "max_line_length": 73, "alphanum_fraction": 0.5279106858}
$(function () {
  var data = [
    polarisSummary.Successes,
    polarisSummary.Warnings,
    polarisSummary.Dangers,
  ];
  var sum = data.reduce(function(total, cur) { return total + cur }, 0.0)
  if (sum === 0.0) {
    data = [1, 0, 0];
  }
  var clusterChart = new Chart("clusterScoreChart", {
    type: 'doughnut',
    data: {
      labels: ["Passing", "Warning", "Error"],
      datasets: [{
        data: data,
        backgroundColor: ['#8BD2DC', '#f26c21', '#a11f4c'],
      }]
    },
    options: {
      responsive: false,
      cutoutPercentage: 60,
      legend: {
        display: false,
      },
    }
  });
});
