🌍 Public
Viewing a saved revision (read-only)
fc55a51b72ce4de6af5d43ddaf9257cc
Fork of music rating
This visualization uses stacked horizontal bars to show how music ratings are distributed across four genres: Rock, Pop, Jazz, and Country. Each bar is segmented into five rating categories, from below 5.0 to above 8.5, with colors assigned by D3's `scaleOrdinal`. Hovering over a segment reveals the exact percentage for that genre and rating category via a tooltip. The chart is built with D3 v7, using `d3.stack`, `d3.scaleLinear`, and `d3.scaleBand` to position the bars, and reads its data from a CSV file.
AI-generated description