DeathsBarchart
✓ Published0🌍 Public
Aanusharamana0@gmail.com
Last edited Apr 27, 2024
Created on Apr 27, 2024
This bar chart visualizes monthly airplane fatalities from a CSV dataset, with each bar representing the total deaths for a given month. The chart uses D3.js v7’s `scaleBand`, `scaleLinear`, and `scaleOrdinal` to map months to bar positions, heights, and a custom purple-grey color palette. Interactive tooltips appear on mouseover, displaying the total fatalities for the hovered month, while axes and labels are generated with `d3.axisBottom` and `d3.axisLeft`. Data is aggregated using `d3.rollup` and `d3.sum`.
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.
MIT Licensed