Viewing a saved revision (read-only)
603b1173e10e4ff48472584fa5c4f06d
Activity6-Question2
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 descriptionThe impact of genre on movie ratings
This stacked bar chart gives the percentage of each rating level within different movie genres. The aim is to show the impact of genre on movie ratings. When the mouse hovers over each bar, you can see pop-ups of accurate percentage of each rating level within each genre. Total percentage is 1, representing 100%.