Nice projections for US states in D3.
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.
- For more D3 state plane projections, check out Noah Veltman's d3-stateplane