🌍 Public
Viewing a saved revision (read-only)
7c50413820c94615b8e5dded431cf6e0
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.