Permalink
Browse files

gud shit bra

  • Loading branch information...
Pedro
Pedro committed Jan 12, 2018
1 parent 1f8f98d commit 3711717d487636063283ad519cd587da72793989
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/circles.js
View
@@ -8,12 +8,16 @@ function circles_graph(filter) {
count = 0;
_.each(d.children, function (element, index, list) {
salary_rating += element.value;
region = element.parent.data.name;
region_or_uni = element.parent.data.name;
count += 1
});
salary_rating = (salary_rating / count).toFixed(2);
return "<strong><span>Region/University:</strong></span><span style='color:lightskyblue'>" + region + "</span><br/>" +
if(d.depth==1)
return "<strong><span>Region:</strong></span><span style='color:lightskyblue'>" + region_or_uni + "</span><br/>" +
"<span><strong>Average " + filter + ": </strong></span> <span style='color:greenyellow'>" + formatDollar(salary_rating) + "</span>";
else if(d.depth == 2)
return "<strong><span>University:</strong></span><span style='color:lightskyblue'>" + region_or_uni + "</span><br/>" +
"<span><strong> " + filter + ": </strong></span> <span style='color:greenyellow'>" + formatDollar(salary_rating) + "</span>";
});

0 comments on commit 3711717

Please sign in to comment.