1
✓ Published1🌍 Public
A choropleth map of Bangladesh visualizes district-level poverty rates, with a red-to-white color scale indicating the proportion of "poor" residents in each area. Hovering over a district reveals a tooltip with the district name, ID, and both extreme and poor poverty percentages. The visualization uses D3.js v5 with topojson to parse geographic boundaries and a Mercator projection via `d3.geoMercator` and `d3.geoPath`. Pan and zoom interactions are enabled through `d3.zoom`, while map shapes are rendered as SVG paths. Poverty data comes from a JSON file linked to district names.
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