Activity6_Task2 Question 1
✓ Published0🌍 Public
This stacked bar chart visualizes the distribution of music genre ratings across five percentage-based rating buckets, from Below 5.0 to Above 8.5. Each horizontal bar represents a genre, with colored segments showing the proportion of ratings in each bucket. D3 v7 builds the visualization by computing stacked data with `d3.stack()`, scaling positions with `d3.scaleLinear` and `d3.scaleBand`, and rendering SVG rectangles. Interactive tooltips, updated via mouse events, display exact percentages using `d3.format`. The chart reads from a CSV file with genre and rating proportion columns.
AI-generated descriptionVisualization of data.csv file in stacked bar graph.
MIT Licensed