fixed d3 directive definition