Pakistan Districts Map v2
✓ Published0🌍 Public
This choropleth map visualizes poverty data across Pakistan’s districts, encoding rates through a white-to-red color scale. Users can pan and zoom, and hovering over a district displays its name via a tooltip. The visualization is built with D3 v5 and topojson, converting TopoJSON features into SVG paths with the `geoMercator` projection and `geoPath` generator. District color values are computed by scaling the poverty rate, while zoom interactions are handled through D3’s `zoom` event.
AI-generated descriptionBangladesh map interaction with sales data
The problem is to visualize Poverty Data on Bangladesh map.
What I have done:
- Parsed topoJson Data to generate Map with geoJson from D3.
- Parsed sales data and maped with each District
- Constructed String for Hover data
- Applied Zoom and Drag feature as required
TopoJSON Data for Bangladesh:
https://raw.githubusercontent.com/techslides/D3-Maps/master/data/world/country/Bangladesh.topo.json
Data Source :https://github.com/emon535/bangladesh-geojson/blob/master/povertydataBD.json
Author Profiles:
- Codepen : http://codepen.io/emon535
- Linkedin : https://www.linkedin.com/in/emon535/
- Github : https://github.com/emon535
MIT Licensed