 
   indRect
     .on("mouseover", (d) ->
-              d3.select(this).attr("opacity", "1")
+              d3.select(this)
+                 .attr("opacity", "1")
               d3.select("#histline")
                  .datum(data.counts[d])
                  .attr("d", histline)

              clickStatus[d] = 1 - clickStatus[d]
              svg.select("rect##{d}").attr("opacity", clickStatus[d])
              if clickStatus[d]
                d3.select(this).attr("opacity", "0")
                lowsvg.append("path")
                      .datum(data.counts[d])
                      .attr("d", histline)
                      .attr("id", d)
                      .attr("fill", "none")
                      .attr("stroke", "blue")
                      .attr("stroke-width", "2")
              else
                lowsvg.select("path##{d}").remove()

       .attr("stroke-width", "2")


  histColors = ["blue", "red", "green", "orange", "black"]

  lowsvg.append("text")
        .datum(randomInd)
        .attr("x", w/2)
