omprove the d3.js chart layerout