An object-oriented API for business analytics using D3.js