Fork of 1
✓ Published1🌍 Public
A choropleth map of Bangladesh displays district-level poverty data, with each region colored on a gradient from white to red based on its reported “poor” percentage. Hovering over a district reveals a tooltip with the district name, ID, and both extreme and poor poverty levels. The visualization uses D3 v5’s `geoMercator` projection and `geoPath` to render TopoJSON boundary data, with a `d3.scaleLinear` mapping poverty rates to fill colors. Zoom and drag interactions are enabled via D3’s `zoom` behavior. Poverty statistics come from a local JSON file joined 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