improved formatting, made both d3 graphs identical