A re-useable charting library using d3.js