🌍 Public
Viewing a saved revision (read-only)
5b42365212c24ce2ad6715ea523ba8f4
Assignment 6
This visualization shows the top 10 music genres ranked by average popularity score, using horizontal bars sorted from highest to lowest. The code loads a CSV dataset via `d3.csv`, aggregates popularity means with `d3.rollups`, and renders an SVG bar chart using `d3.scaleBand` and `d3.scaleLinear`. Axes are generated with `d3.axisBottom` and `d3.axisLeft`, and rotated genre labels improve readability. The bar chart uses steelblue rounded rectangles to compare genre popularity at a glance.
AI-generated description