Map of Greece
✓ Published0🌍 Public
This example displays a map of Greece rendered as a gold SVG path on a blue background, with regions highlighted in salmon on hover. It uses D3 v4’s `d3.geoMercator()` projection and `d3.geoPath()` to draw the country from a GeoJSON file loaded via `d3.json()` from a GitHub-hosted world dataset, filtering features to Greece by name. The script initializes the SVG with a fixed width and height, applies a scale and translation to center the map, and uses CSS to style the path fill and hover effects.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed