Implemented basic d3 margin convention support