Command Palette
Search for a command to run...
Comments (1)
Join the discussionD
Dmitry5y ago
Problem was in scoping variable projection:
const projection = d3
.geoAlbersUsa()
.scale(1300)
.translate(width / 2, height / 2);
I checked with console.log(projection(-86.300568, 32.377716)) and in output was null. So I changed
`translate(${projection([longitude, latitude]).join(",")})`
to
`translate(${d3
.geoAlbersUsa()
.scale(1300)
.translate([width / 2, height / 2])([longitude, latitude])
.join(",")})`
And it works now! 😃
But there is still question of how to make variable projection be visible in the scope? 🤔
More from this blog
Install Ubuntu using VirtualBox
In case Ubuntu external Terminal is not working and user has no rights to perform privileged operations
May 30, 20232 min read

Efficient Way To Debug JavaScript in VS Code
No Extension Required
Jul 27, 20222 min read

PostgreSQL_Drop Mainantanance DB
within pgAdmin 4
Mar 22, 20221 min read

PostgreSQL_Backup and Restore database
within pgAdmin 4
Mar 22, 20221 min read

Create and add specific local folders to GitHub Repo
Working with .gitignore
Mar 10, 20222 min read
