Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Crash Distribution

Public visualization

Viewing a saved revision (read-only)

d8efe7528ff843c3b6f4f76ed89488c2

Crash Distribution

0 stars1🌍 Public
DDouglas mochama
Last edited Apr 10, 2024
Created on Apr 10, 2024

This bar chart visualizes the distribution of airplane crashes by operator, allowing users to adjust the number of operators displayed via a slider. The chart is rendered as an SVG using D3.js (v7), aggregating the data with `d3.rollup` and sorting operators by crash count in descending order. Bars are drawn with `d3.scaleBand` and `d3.scaleLinear`, with axes labeled and rotated for readability. Interactivity is handled through an `input` event listener on the range slider, which dynamically updates the chart without reloading the dataset from the provided CSV source.

AI-generated description