Skip to main content
100%

Interaction

✓ Published1🌍 Public
NNTCHANG1289
Last edited Nov 7, 2018
Created on Sep 22, 2018

A world map renders countries in light green with black outlines on a blue sphere, using D3 v5 with a geoNaturalEarth1 projection. Users hover over any country to highlight it pink, while clicking a specific country isolates that selection and removes highlights from others. The visualization loads geographic data from a TopoJSON world atlas and merges it with a TSV file for country names. Code employs d3.geoPath, d3.zoom for panning, and CSS classes to toggle the selected country’s fill color.

AI-generated description

When hovering on countries, they will all be selected, while when click a specific country, then there will be only one country being selected.

I actually don't tackle the task. I have tried the method in Bowl of Fruit - Click to Select (https://vizhub.com/NTCHANG1289/17953e2e1e864c4e8ab5a637553dec49), but I didn't successfully get any result from the map.

The method I used in this one is found on the website Making a map using D3.js

But I am not really sure: is such method more like the cheap tricks example?

I would say this is the most difficult assignment as to now~~~

MIT Licensed

Similar vizzes