🌍 Public
Analyzing crash data by operator
This interactive bar chart visualizes the number of crashes by operator, with the y-axis representing crash counts and the x-axis listing operators. Users can adjust a range slider to select how many operators to display and choose ascending or descending order via a dropdown menu. Built with D3.js v7, the visualization uses `d3.rollup` to aggregate crash counts from a Google Sheets CSV, `d3.scaleBand` and `d3.scaleLinear` for axes, and updates bars dynamically on interaction. Hovering highlights bars in orange.
AI-generated descriptionThis is a D3.js interactive graph that shows the number of crashes by operator where the y-axis shows the number of crashes while the x-axis shows different operators.
MIT Licensed
Comments
Sign in to join the discussion.