Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Affection Type Unknown Map

Public visualization

Viewing a saved revision (read-only)

c35205f4a48444adac1aa6263c8dd2bc

Affection Type Unknown Map

1 star0🌍 Public
SSrishti2398
Last edited May 14, 2020
Created on May 14, 2020

This map of China visualizes provincial data on affection types, specifically highlighting the "Unknown" category through red circles positioned at each province’s centroid. The map uses an SVG rendering with a Mercator projection and loads geographic boundaries from a TopoJSON file while joining CSV data by province ID. Circle radii are scaled using `d3.scaleSqrt` based on unknown values, with a custom size legend showing tick values. Provinces are colored using `d3.scaleOrdinal` with `schemeCategory10`, and hover effects change fill to red. The visualization relies on `d3.geoPath`, `d3.geoCentroid`, and `d3.zoom` for interaction.

AI-generated description