Skip to main content
100%

Shapes and Colors with SVG and CSS

✓ Published0🌍 Public
OOsekovS
Last edited Aug 18, 2020
Created on Aug 17, 2020

A world map rendered with SVG paths, where countries are filled with a light green color and the ocean appears blue. Hovering over any country instantly changes its fill to red, while a natural Earth projection and zoom interaction let viewers pan and scale the map. Built with D3 v5, the example uses `d3.geoNaturalEarth1`, `d3.geoPath`, and `d3.zoom` to project and manipulate the geometry, with country names loaded from a TSV file and shapes from TopoJSON data.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes