Skip to main content
100%

working with time

✓ Published0🌍 Public
JJenny
Last edited Mar 5, 2021
Created on Mar 5, 2021
Forked from Line Chart

A histogram visualizes monthly totals of dead and missing migrants from the Data Canvas - Sense Your City API, with the x-axis showing reported dates across 2019 and the y-axis counting incidents. Built with React and D3 v5, the code uses `d3.csv` for data loading, `d3.scaleTime` and `d3.scaleLinear` for axes, and `d3.bin` with `d3.timeMonths` thresholds to group records into monthly bins. SVG rectangles render the bars, with tooltips via SVG `<title>` elements, and custom React components handle axis and mark rendering.

AI-generated description
MIT Licensed

Similar vizzes