added d3 api