d3 directives