Skip to content

Commit

Permalink
Merge pull request #18 from deanmalmgren/issue-18
Browse files Browse the repository at this point in the history
bug on demo page (and beyond?): # of respondents not in document flow
  • Loading branch information
Dean Malmgren committed Oct 22, 2013
2 parents c410c46 + cc4e27f commit 8a017b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions catcorr.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@
.append("g")
.attr("transform", "translate(0,0)");

// add a clear div at the bottom as temporary fix for #18
d3.select(div_id)
.append("div")
.style("clear", "both");

// draw the bars on the legend
legend_svg.selectAll(".bar")
.data(["all_background", "background", "foreground",
Expand Down Expand Up @@ -205,8 +210,6 @@
"M",legend_width/2-bar_width/2-3,",",36,
"v",-22,"h",42].join(""));

// .attr("d", ["M",(legend_width-(bar_width-2*bar_gap))/2,",",40,"h",bar_width-2*bar_gap, "M", legend_width/2,",",15,"v",45].join(""));

// if there are more than one type of question, render a
// legend for the colors
var question_types = d3.set();
Expand Down

0 comments on commit 8a017b6

Please sign in to comment.