 #   is show below; click for it to persist; click again to make it go away.
 #
 
-d3.json("data.json", (data) ->
+d3.json "data.json", (data) ->
 
   # dimensions of SVG
   w = 1000

       .attr("d", quline(j))
       .attr("class", "line")
       .attr("stroke", qucolors[j])

  # special rectangles in the background
  clickStatus = {}
  index = {}
  specialrects = svg.append("g")
  for d in indindex
    clickStatus[d] = 0
    specialrects.append("rect")
       .attr("x", xScale(d+0.5))
       .attr("y", yScale(data.quant[nQuant-1][d]))
       .attr("width", 2)
       .attr("id", "rect#{data.ind[d]}")
       .attr("height", yScale(data.quant[0][d]) - yScale(data.quant[nQuant-1][d]))
       .attr("opacity", 0)
       .attr("stroke", "none")

  # vertical rectangles representing each array
  indRectGrp = svg.append("g")

  indRect = indRectGrp.selectAll("empty")
                 .data(indindex)
                 .enter()
                 .append("rect")
                 .attr("x", (d) -> xScale(d+0.5))
                 .attr("y", (d) -> yScale(data.quant[nQuant-1][d]))
                 .attr("id", (d) -> "rect#{data.ind[d]}")
                 .attr("width", 2)
                 .attr("height", (d) ->
                    yScale(data.quant[0][d]) - yScale(data.quant[nQuant-1][d]))
                 .attr("fill", "purple")

     .attr("x", (d) -> xScale(d))
     .attr("dominant-baseline", "middle")
     .attr("text-anchor", "middle")

  # colors for quantile curves
  colindex = d3.range((nQuant-1)/2)
