javascript - d3 V4 中尝试在 AlbersUSA 上使用 projection.center() 时出现“不是函数”错误
问题描述
我要退出当前的 D3 文档,但似乎我的 D3 版本 4 在我设置投影时没有使用 projection.center([lon, lat]) 函数。
我正在尝试这个:
var projection = d3.geoAlbersUsa().center([-71.382439, 42.407211]);
并不断收到此错误:
d3.geoAlbersUsa(...).center is not a function
是否有新的语法或我缺少的东西?
解决方案
推荐阅读
- ionic-framework - 离子段按钮样式
- python - Matplotlib contourf 不反映带边界的 ListedColormap
- java - APM 显示迁移到 Oracle 12c 后 SQL 的大量执行
- c# - 通过 Unity 中的脚本对象更改图像
- php - 413 请求实体在使用 apache 的 wordpress 中出现太大错误?
- ibm-cloud - IBMCloud - 通过 JDBC 连接到 PostgreSQL DB(启用 SSL)
- python-3.x - 现在使用python从服务中导出数据rest API
- laravel - 我的中间件每次都重定向到主页
- c# - 如何使用自定义工厂方法注册开放泛型?
- r - 如果组有多个因子级别,则创建长数据格式的新列?