Fork of Cheap Tricks for interaction
✓ Published0🌍 Public
This example shows a world map with colored countries and two curved lines connecting points between South America and the Atlantic Ocean, drawn from a CSV file containing latitude and longitude pairs. The visualization uses d3.geoMercator for projection, d3.geoPath to render geographic features, and d3.zoom for panning and scaling the entire scene. Country data comes from a TopoJSON file loaded via topojson.feature, while a d3.json request fetches a GeoJSON world shape. Countries are assigned colors from a rotating palette, with hover effects turning them black.
AI-generated descriptionMIT Licensed