Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 World Map

Public visualization

D3 World Map

0 stars0🌍 Public
HHaolong Liu
Last edited Dec 14, 2022
Created on Dec 14, 2022

This example displays a U.S. map with state boundaries and labels, alongside a scatterplot of cities plotted by latitude and longitude, using a dark background. It loads geographic data from a JSON file and renders it with the D3 v3 library, using the AlbersUSA projection and `d3.geo.path` for SVG paths. The map also includes city points from a CSV file, and the code demonstrates basic chart setup with D3 selections and event handlers.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed