Skip to main content
100%

barchart

✓ Published0🌍 Public
XXiaoyu Su
Last edited Feb 18, 2021
Created on Feb 9, 2021
Forked from HTML Starter

This interactive bar chart visualizes monthly deaths in custody across 2020, drawn from the `death2020.csv` dataset and displayed as an SVG rendered through React with D3 v5. The chart uses `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, with bars that respond to mouseover and mouseout events by adjusting opacity. Buttons allow users to toggle a mean line with error bounds computed via `d3.mean` and `d3.deviation`, or trigger a two-step animated transition that temporarily sets all values to 10 before restoring them using `transition().duration()`.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes