Added some directives for D3.