title: dc.js barChart bars overlapping
body: <p><img src="https://snag.gy/LwwkF.jpg" alt="the faulty graph"></p>
  
  <p>This is my datetime barChart. When I use a fiddle (see <a href="http://jsfiddle.net/6pwx6/2/" rel="nofollow noreferrer">here</a>) to try and replicate the issue, it works as  intended.
  NB : The data takes a while (~30sec) to load from github.</p>
  
  <p>Here is the code for the graph :</p>
  
  <pre><code>    pnlPerDaybarChart
      .height(300)
      .width(700)
      .dimension(dims.date)
      .group(groups.date.pnlSum)
      .valueAccessor(function(d) {
          return Math.abs(d.value);
      })
      .renderTitle(false)
      .x(d3.time.scale().domain([minDate,maxDate]))
      .xUnits(d3.time.days)
      .colors(colorChoice)
      .colorAccessor(function(d) {
              if (+d.value&gt;0) {
                  return("positive");
              } else {
                  return("negative");
              }
          })
      .brushOn(true)
      .elasticY(true)
      .margins({left: 70 ,top: 10, bottom: 30, right: 50})
      .centerBar(true);
  </code></pre>
  
  <p>Am I missing something obvious here ? If not, any ideas where I should start debugging ? I have spent a fair amount of time on this one and I can't find anything wrong.</p>
  
  <p>EDIT: when I remove the <code>.xUnits</code> instructions, I get very skinny bars but well placed along the axis. That leads me to think that there is something wrong with the calculation of the width of the bars. I don't know how to debug that specific calculation though. If anyone knows, I'll be happy to dig into it.</p>
  
  <p>EDIT2 : The <code>width</code> attribute of the <code>&lt;g class="chart-body"&gt;&lt;g class="stack _0"&gt;&lt;rect class="bar"&gt;&lt;/rect&gt;&lt;/g&gt;&lt;/g&gt;</code> elements within the <code>svg</code> are all set to a wrong value. If anyone could point me to where this is calculated in the <code>d3</code> library, I could maybe take it from there.</p>
  
  <p>EDIT3: I found the source of my issue. The width of the bars is incorrect because when calculateBarWidth() has run once to instantiate the graph, it doesn't run anymore even when dc.redrawAll() is called. In my case I successively add chunks of records to my crossfilter and redraw the graphs. The new question is 'How do I force calculateBarWidth() to rerun ?'</p>