Skip to content

Commit 8a017b6

Browse files
author
Dean Malmgren
committed
Merge pull request #18 from deanmalmgren/issue-18
bug on demo page (and beyond?): # of respondents not in document flow
2 parents c410c46 + cc4e27f commit 8a017b6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

catcorr.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@
129129
.append("g")
130130
.attr("transform", "translate(0,0)");
131131

132+
// add a clear div at the bottom as temporary fix for #18
133+
d3.select(div_id)
134+
.append("div")
135+
.style("clear", "both");
136+
132137
// draw the bars on the legend
133138
legend_svg.selectAll(".bar")
134139
.data(["all_background", "background", "foreground",
@@ -205,8 +210,6 @@
205210
"M",legend_width/2-bar_width/2-3,",",36,
206211
"v",-22,"h",42].join(""));
207212

208-
// .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(""));
209-
210213
// if there are more than one type of question, render a
211214
// legend for the colors
212215
var question_types = d3.set();

0 commit comments

Comments
 (0)