title: Uniformly-spaced histogram bins with dc.js?
body: <p>Mike Bostock uses the following snippet to generate uniformly-spaced bins for a histogram:</p>
  
  <pre><code>var data = d3.layout.histogram()
  .bins(x.ticks(20))
  (values);
  </code></pre>
  
  <p><a href="http://bl.ocks.org/mbostock/3048450" rel="nofollow">source</a></p>
  
  <p>Is there any way to adapt this to a project that uses dc.js and crossfilter.js?</p>
  
  <p>Essentially, I want to dynamically generate the bins and then use the chart to filter on a particular attribute. Total newbie to this. Any guidance would be appreciated!</p>