        .append("text")
        .attr("class", "qu")
        .text( (d) -> "#{d*100}%")
-       .attr("x", w-pad*0.1)
+       .attr("x", w-pad.right*0.1)
        .attr("y", (d,i) -> yScale((i+0.5)/nQuant - 0.5))
        .attr("fill", (d,i) -> colors[i])
        .attr("text-anchor", "end")


  xScale = d3.scale.linear()
             .domain([0, data.ind.length-1])
             .range([pad, w-pad])

  yScale = d3.scale.linear()
             .domain([-1.1, 1.1])
             .range([h-pad, pad])

  axisFormat2 = d3.format(".2f")
  axisFormat1 = d3.format(".1f")


  lowyScale = d3.scale.linear()
             .domain([0, maxCount+0.5])
             .range([h-pad.bottom, pad.top])

  # gray background
  lowsvg.append("rect")
     .attr("x", pad.left)
     .attr("y", pad.top)
     .attr("height", h-pad.top-pad.bottom)
     .attr("width", w-pad.left-pad.right)
     .attr("stroke", "none")
     .attr("fill", d3.rgb(200, 200, 200))

