I\'m making a bar chart using the Dimensional Charting javascript library dc.js, which is based on d3 and crossfilter.
All I want to do is display a histogram with a
Bar charts in dc.js use the xUnits function to automatically calculate the width of the bars in a histogram based on the range of your x-axis. If you want to set the width to a static value you can use a custom xUnits function for example:
chart.xUnits(function(){return 10;});
This should give you a more fitting width.