Skip to main content
100%

1

✓ Published1🌍 Public
SSNarasimhar
Last edited Jul 8, 2022
Created on Jul 8, 2022

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