Skip to main content
100%

Map of Greece

✓ Published0🌍 Public
YYiorgos Bagakis
Last edited Dec 10, 2022
Created on Nov 12, 2022
Forked from HTML Starter

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes