Rough implementation of some d3 graphs