Activity6_Task2
This stacked bar chart shows the percentage distribution of five IMDb rating levels across six movie genres, revealing how genre influences audience ratings. The visualization uses d3.stack() to compute stacked segments and d3.scaleBand with d3.scaleLinear for positioning. Hover interactions trigger tooltips displaying exact percentages via d3.select and event handlers. The SVG rendering includes a legend, axis labels, and color-coded categories from the data.csv source file.
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%.