moved d3 directives to seperate module/file. now with interactive graphics! (except dates, that still needs work.)