Testing d3.chart to create reusable charts