标签: javascript d3.js
我要退出当前的D3文档,但似乎我的D3版本4在设置投影时没有使用projection.center([lon,lat])函数。
我正在尝试:
var projection = d3.geoAlbersUsa().center([-71.382439, 42.407211]);
并继续收到此错误:
d3.geoAlbersUsa(...).center is not a function
是否有新的语法或缺少的内容?