Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Missing Migrants 2

Public visualization

Viewing a saved revision (read-only)

9e7fe62bc30647368304350d375aa342

Missing Migrants 2

0 stars0🌍 Public
NNikita Toropov
Last edited Mar 14, 2023
Created on Mar 13, 2023
Forked from Working with Time

This visualization shows monthly totals of dead and missing migrants from a subset of the Missing Migrants Global dataset, with time on the x-axis and count on the y-axis as a bar chart. It loads CSV data via D3’s `csv` utility, bins entries by month using `d3.histogram` with `timeMonths` thresholds, and sums the total dead and missing per bin. The chart is rendered as SVG using React components, with axes from custom `AxisBottom` and `AxisLeft` components and bars from a `Marks` component, all styled via CSS.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.