                 d3.select(this).attr("opacity", "0")
                 svg.select("rect##{d}").attr("fill", curcolor)
 
-                lowsvg.append("path")
+                grp4BkgdHist.append("path")
                       .datum(data.counts[d])
                       .attr("d", histline)
                       .attr("id", d)

     .attr("dominant-baseline", "middle")
     .attr("text-anchor", "middle")


  histline = d3.svg.line()
        .x((d,i) -> lowxScale(br2[i]))

                      .attr("stroke", curcolor)
                      .attr("stroke-width", "2")
              else
                grp4BkgdHist.select("path##{d}").remove()
            )

  # box around the outside
