Fixed edge label issues with D3