Viewing a saved revision (read-only)
aa86528e2d434435831c07d08a24013d
Activity6_Task2
A stacked bar chart displays the percentage distribution of five IMDb rating categories across six movie genres, showing how genre influences ratings. The chart uses SVG rendering with D3.js v7, employing `d3.scaleOrdinal` for colors, `d3.scaleLinear` for the x-axis percentage scale, and `d3.scaleBand` for the categorical y-axis. Hovering over bars triggers tooltips showing exact percentages, computed from the provided CSV data.
AI-generated descriptionThis 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%.