From cc4e27f3cc1b6fc7dbd5385da2e965ba1554091c Mon Sep 17 00:00:00 2001 From: Dean Malmgren Date: Tue, 22 Oct 2013 17:04:57 -0500 Subject: [PATCH] added clear div to address issue #18 --- catcorr.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/catcorr.js b/catcorr.js index 283ba73..c91aa61 100644 --- a/catcorr.js +++ b/catcorr.js @@ -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", @@ -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();