wrapper directives for d3 charts