added d3 directive