adjust so d3 graphic appears correctly