       .orient("left")
       .innerTickSize(-width)
       .tickFormat((d) -> "#{d}Å")
-      .ticks(10)
+      .tickPadding(10)
+      .ticks(tickCount)
 
     line = d3.svg.line()
       .x((point, index) -> x(index))

      .call(yAxis)
      .append("text")
      .attr("transform", "rotate(-90)")
      .attr("y", 6)
      .attr("dy", ".71em")


    width = $container.width()
    height = $container.height()
    margin = {top: 40, right: 0, bottom: 30, left: 40}
    tickCount = tickNum || parseInt(height/25)

    x = d3.scale.linear().range [0, width - 52]
    y = d3.scale.linear().range [height, 0]
