Viewing a saved revision (read-only)
a20b142626b243fc95ee6d2697644111
Activity-6_Q2
This stacked bar chart visualizes the percentage distribution of music rating categories (below 5.0 to above 8.5) across five streaming platforms, including Spotify, YouTube, Apple, Amazon, and Tidal. Each horizontal bar segment represents a rating category’s proportion, colored via a categorical scale, with hover tooltips showing the exact percentage for each genre. The visualization uses D3.js v7, employing `d3.stack()` for data stacking, `d3.scaleBand()` for the y-axis, and `d3.axisBottom()` for the x-axis. SVG rendering with custom CSS styles and a legend displays the data from the provided CSV file.
AI-generated description##Chocolates likes and dislikes 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%.