Object-oriented API build on top of D3.js