Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Course 7: World Map

Public visualization

D3 Course 7: World Map

0 stars2🌍 Public
GGabrz
Last edited Apr 2, 2020
Created on Apr 2, 2020

This example demonstrates an interactive world map using D3 v5 and TopoJSON data from the world-atlas package. It renders countries with the Natural Earth projection via d3.geoPath, applies an ocean sphere outline, and colors landmasses light green with black strokes. The map supports panning and zooming through d3.zoom, highlights countries in red on hover via CSS, and displays country names using tooltips sourced from a TSV lookup file.

AI-generated description

Data Visualization with D3 course; World Map

<h3>Making a World Map</h3> <table> <th align="left">Topics</th> <tr> <td> <ul> <li><b>Loading and parsing TOPOJSON</b></li> <li><b>Rendering geagraphic features</b></li> <li><b>Using different map projections</b></li> <li><b>Rendering projected sphere outline</b></li> <li><b>Tweaking map style</b></li> <li><b>Styling Tricks for interaction</b> <ul> <li><b>Highlight on Hover (using CSS)</b></li> <li><b>Adding simple tooltips</b></li> <li><b>Panning & Zooming</b></li> </ul> </li> </ul> </td> </tr> </table>

Comments

Sign in to join the discussion.

MIT Licensed