Skip to main content
100%

Activity6-Question2

✓ Published1🌍 Public
Ssushanthkodipyaka@gmail.com
Last edited Apr 5, 2024
Created on Apr 4, 2024
Forked from Activity6-Task2

This stacked horizontal bar chart shows the distribution of music ratings percentages across five platforms: Spotify, YouTube, Apple, Amazon, and Tidal, segmented into five rating categories from below 5.0 to above 8.5. Each bar segment’s length corresponds to the proportion of ratings in that category, with hover interactions revealing exact percentages via a tooltip. Rendered with D3 v7 using `d3.stack()` and `d3.scaleOrdinal` for coloring, it employs SVG axes from `d3.axisBottom` and `d3.axisLeft`, reading data from a CSV file. The chart includes a legend and uses percentage labels formatted with `d3.format`.

AI-generated description
MIT Licensed

Similar vizzes