modular library for plotting charts with javascript + svg + d3