A reusable ordinal bar chart built with d3.js