d3 reusable charts