Histograms in D3.js using d3.chart.