{"size": 747, "ext": "js", "max_stars_repo_path": "js/main.js", "max_stars_repo_name": "ashlyno/tp5-maps-web", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/main.js", "max_issues_repo_name": "ashlyno/tp5-maps-web", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/main.js", "max_forks_repo_name": "ashlyno/tp5-maps-web", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.75, "max_line_length": 44, "alphanum_fraction": 0.6144578313}
$(function() {

var thresholdScale = d3.scaleThreshold()
  .domain(d3.range(69,75))
  .range(d3.schemeRdBu[6]);

var svg = d3.select("#vis").append("svg");

svg.append("g")
  .attr("class", "legendQuant")
  .attr("transform", "translate(20,20)");

var legend = d3.legendColor()
    .labelFormat(d3.format(".2f"))
    .useClass(true)
    .scale(thresholdScale)

/*
----legendHelpers.thresholdLabels----
function({ i, genLength, generatedLabels }){
  if (i === 0 ){
    return generatedLabels[i]
      .replace('NaN to', 'Less than')
  } else if (i === genLength - 1) {
    return `More than
      ${generatedLabels[genLength - 1]
      .replace(' to NaN', '')}`
  }
  return generatedLabels[i]
}
*/

svg.select(".legendQuant")
  .call(legend);

});