Skip to content

Commit

Permalink
Started addressing #20
Browse files Browse the repository at this point in the history
  • Loading branch information
mostaphaRoudsari committed Aug 6, 2015
1 parent f303e98 commit a699094
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,14 @@
d3.selectAll("path.domain")
.style("stroke", function(d,i){ return colorset[i];});
};



function updateLabels(){
d3.selectAll("text.label")
// move every other label up
.attr("transform", function(d,i){return "translate (0 , -" + (10 + ((i%2) * 15)) + ")"})
};

</script>

<!-- draw legend -->
Expand Down Expand Up @@ -919,7 +926,6 @@
updateSlidersTickValues();
}


d3.selectAll("rect.legend").on('click', function(d) {
var rect = d3.select(this);
var name = d.name;
Expand Down

0 comments on commit a699094

Please sign in to comment.