Reusable charting library for d3.js