Pretty Histogram

HTML

<script src="//d3js.org/d3.v3.min.js"></script>
<script src="//jrideout.github.io/histogram-pretty/histogram-pretty.js"></script>

TypeScript

x = d3.range(1000).map d3.random.normal()
y = histogram(x)
console.log y.tickRange(10)