Created seperate directives for different d3 graphs.