adding d3 directive