🌍 Public
Viewing a saved revision (read-only)
1a039ee9744c4795ac0f48c839e64f4f
Bar Chart in D3
This bar chart displays the maximum hours of music listened to per day across surveyed ages, omitting ages not present in the dataset. It uses D3 v7 to load a CSV file, aggregates the data with `d3.group`, and computes the maximum per age via `d3.max`. The SVG rendering uses `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, with axes labeled using `d3.axisBottom` and `d3.axisLeft`. Bars are purple rectangles with white value labels, and hovering over a bar changes its fill to mediumpurple.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.