Skip to main content
100%

Fork of Affection Type Unknown Map

✓ Published0🌍 Public
NNelly-ux10
Last edited Mar 16, 2021
Created on Mar 16, 2021

This map of China displays the number of unknown-affection cases per province, with red circles sized proportionally to the count and provinces colored by category. The visualization uses a Mercator projection with `d3.geoPath` to render province boundaries, and `d3.scaleSqrt` to map case counts to circle radii via `d3.geoCentroid`. A legend, generated by a custom `sizeLengend` function, explains the circle sizes, while data comes from a CSV file merged with TopoJSON-provided province geometries. The map also supports hover highlighting through CSS, and code loads data asynchronously using `Promise.all` with `d3.csv` and `d3.json`.

AI-generated description
MIT Licensed

Similar vizzes