Compilation of some d3 directives