   for d in indindex
     clickStatus.push(0)
 
-  indRect
+  longRect
     .on "mouseover", (d) ->
-              d3.select(this)
+              d3.select("rect#rect#{data.ind[d]}")
                  .attr("opacity", "1")
               d3.select("#histline")
                  .datum(data.counts[d])


    .on "mouseout", (d) ->
              if !clickStatus[d]
                d3.select(this).attr("opacity", "0")

    .on "click", (d) ->
              console.log("Click: #{data.ind[d]} (#{d})")
              clickStatus[d] = 1 - clickStatus[d]
              d3.select(this).attr("opacity", clickStatus[d])
              if clickStatus[d]
                curcolor = histColors.shift()
                histColors.push(curcolor)

                d3.select(this).attr("fill", curcolor)

                grp4BkgdHist.append("path")
                      .datum(data.counts[d])

        .y((d) -> lowyScale(d))

  randomInd = indindex[Math.floor(Math.random()*data.ind.length)]
  d3.select("rect#rect#{data.ind[randomInd]}").attr("opacity", "1")

  hist = lowsvg.append("path")
