histogram library based on d3.js