Skip to content

vis4/d3-geo-state-plane

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

d3.geo.statePlanes

Nice projections for US states in D3.

Live demo

var proj = d3.geo.statePlane('NY');

By default, the projection will be scaled and translated to fit the state into a 1000px * 600px rect, but you can easily scale for a different output size by passing width and height as additional parameters:

// center NY into a 500px * 350px viewport
var proj = d3.geo.statePlane('NY', 500, 350);

This was hacked together in a few hours, so please feel free to fix projections or correct errors using pull requests.

Related work

  • For more D3 state plane projections, check out Noah Veltman's d3-stateplane

Releases

No releases published

Packages

No packages published