added base d3 directive