fix coordinate transformation in d3 renderer