Skip to main content
100%

Fork of Persons of Concern StreamGraph by Origin

✓ Published0🌍 Public
Zzedelstein
Last edited Dec 4, 2021
Created on Dec 4, 2021

A streamgraph visualizes the total number of persons of concern per year, grouped by country of origin, using UNHCR data. It shows stacked, colored streams for countries with over one million total persons, with labels positioned by d3-area-label. The code uses d3.stack with stackOffsetWiggle and stackOrderInsideOut, d3.scaleTime, and d3.scaleOrdinal with schemeCategory10. Values are interpolated across years via d3.bisector. Hovering over paths turns them black.

AI-generated description

A StreamGraph visualization of the total number of persons of concern grouped by country of origin.

The total number of persons of concern is the sum of Asylum-seekers, Internally displaced persons, Persons in IDP-like situation, Others of concern, Returned IDPs, Refugees (incl. refugee-like situations), Returnees, Persons in Refugee-like situation, and Stateless Persons. Excludes countries with relatively low counts. Data from UNHCR Population Statistics.

See also this variant that shows the data grouped by destination.

Draws from Labeled Streamgraph and Syrian Refugees by Settlement Type.

Uses d3-area-label to position labels.

Originally published in bl.ocks.org: Persons of Concern StreamGraph by Origin.

MIT Licensed

Similar vizzes