🌍 Public
Viewing a saved revision (read-only)
1212b0afa9e740f88c914c7191c1efab
ICE 6 -1
This visualization displays the average popularity of songs across different genres, sorted from highest to lowest. The code uses D3 v7 to load CSV data, roll up the dataset with `d3.rollups`, and compute mean popularity per genre. Bar heights are mapped with `d3.scaleBand` and `d3.scaleLinear`, rendered as SVG rectangles, with axes from `d3.axisBottom` and `d3.axisLeft`. The chart is titled and rendered entirely in SVG.
AI-generated description