Fork of Persons of Concern StreamGraph by Origin
This streamgraph visualizes the total number of persons of concern grouped by country of origin, with data from UNHCR Population Statistics. Each colored band represents a country, with labels positioned using d3-area-label. The visualization uses d3.stack with stackOffsetWiggle and stackOrderInsideOut to create the flowing streamgraph shape, while d3.scaleTime and d3.scaleLinear handle the axes. The code interpolates yearly values using d3.bisector, and renders the result as an SVG with hover effects that highlight individual bands.
AI-generated descriptionA 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.