Skip to main content
100%

Fork of 1

✓ Published1🌍 Public
PPedram
Last edited Jan 11, 2023
Created on Jan 11, 2023
Forked from 1

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 description

Bangladesh 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:

MIT Licensed

Similar vizzes