question3
A stacked bar chart displays the percentage of each rating level across movie genres, showing how genre influences ratings. Horizontal bars represent genres, with color-coded segments for each rating category; hovering reveals exact percentages via tooltips. Built with D3 v7, the visualization uses `d3.stack()`, `d3.scaleBand()`, and `d3.scaleOrdinal()`, rendering SVG elements and reading data from a CSV file where total proportions equal 1 (100%).
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%.