Fork of Persons of Concern StreamGraph by Origin
This fork of the Persons of Concern StreamGraph groups cumulative COVID-19 case counts by Chinese province over time. Using d3.stack with the wiggle offset and basis curve, it renders a smooth streamgraph in SVG, with each province as a colored layer. The code interpolates missing daily values between reported dates and applies a unique color to each province. Hovering a layer turns it black for emphasis, while white labels are positioned via d3-area-label. Data is loaded from a local JSON file via d3.json.
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.