Added initial d3 margin convention support