function compileLocationPoints(points){
  var neighborhoodName = points[0].neighborhood;
  var averageScoreArray = [];
  for (let p of points){
    averageScoreArray.push(p.score);
  }
  var averageScore = averageArray(averageScoreArray).toFixed(2);
  return {x:neighborhoodName,y:averageScore};
}
// Returns array with average score for given location cohort
Returns array with average score for given location cohort
Returns array with average score for given location cohort
function compileLocationPoints(points){
  var neighborhoodName = points[0].neighborhood;
  var averageScoreArray = [];
  for (let p of points){
    averageScoreArray.push(p.score);
  }
  var averageScore = averageArray(averageScoreArray).toFixed(2);
  return {x:neighborhoodName,y:averageScore};
}
function compileLocationPoints ( points ) { var neighborhoodName = points [ 0 ] . neighborhood ; var averageScoreArray = [ ] ; for ( let p of points ) { averageScoreArray . push ( p . score ) ; } var averageScore = averageArray ( averageScoreArray ) . toFixed ( 2 ) ; return { x : neighborhoodName , y : averageScore } ; }
Returns array with average score for given location cohort
Returns array with average score for given location cohort