Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Missing Migrants Date Histogram

Public visualization

Viewing a saved revision (read-only)

00eb97da5a054d4f88a609816ba80b8b

Fork of Missing Migrants Date Histogram

0 stars0🌍 Public
GGuilinabaoge
Last edited Sep 26, 2022
Created on Sep 26, 2022

This visualization shows the total number of dead and missing migrants per month, aggregated by year from the Missing Migrants Dataset. It renders as an SVG bar chart using React, where each bar represents the monthly sum of fatalities. The code uses d3.bin to create monthly time bins and d3.sum to aggregate the y-values within each bin, with d3.scaleTime and d3.scaleLinear mapping the data to screen coordinates. Hovering reveals exact totals via SVG title tooltips, while axis components from d3 handle tick generation and formatting.

AI-generated description

A date histogram showing the sum total dead and missing migrants for each month.

Data from the Missing Migrants Dataset.

Demonstrates use of d3.bin and d3.sum.