Reusable D3.js graphs in a more familiar programming style than C3.js