Activity6_Task2
This stacked bar chart displays the percentage distribution of IMDb rating levels across six movie genres, showing how genre impacts audience ratings. Each genre’s bar is divided into five rating segments, from “below 5.0” to “above 8.5,” with tooltips revealing exact percentages on hover. Built with D3 v7 using SVG, the chart employs `d3.stack()` for data stacking, `d3.scaleOrdinal` for color encoding, and `d3.axisBottom` for the percentage axis. The data originates from a CSV file, rendered with interactive mouseover events for detailed value exploration.
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%.