projection.translate()

projection.translate([translate])

If translate is specified, sets the projection’s translation offset to the specified two-element array [tx, ty] and returns the projection. If translate is not specified, returns the current translation offset which defaults to [480, 250]. The translation offset determines the pixel coordinates of the projection’s center. The default translation offset places ⟨0°,0°⟩ at the center of a 960×500 area.

doc_D3_Js
2016-11-24 10:28:30
Comments
Leave a Comment

Please login to continue.