Skip to main content
100%

Display a map

✓ Published0🌍 Public
HHirosaji
Last edited Dec 9, 2019
Created on Sep 11, 2018

This choropleth map shows the gender ratio of Japan’s population by prefecture, overlaid on a Mapbox light-v9 basemap. The code merges official 2017 population statistics from a TSV file with geographic boundaries from a GeoJSON file using D3 v5’s `d3.json` and `d3.tsv`. A Mapbox GL map renders the fill colors, using a color-stops legend with thresholds for the ratio. Clicking a prefecture displays its name in a popup and briefly highlights it by setting a special value.

AI-generated description
mit Licensed

Similar vizzes