Activity6_Question2
This stacked bar chart displays the proportion of IMDb ratings across five categorical groups, showing how category influences rating distributions. Each horizontal bar is segmented by rating bands from “below 5.0” to “above 8.5,” with colors assigned via `d3.scaleOrdinal`. The visualization uses `d3.stack` to compute stacked segments, `d3.axisBottom` for the percentage x-axis, and `d3.axisLeft` for category labels. Hovering over a segment triggers a tooltip that reveals the exact percentage for that rating level within the category, based on the provided data.csv.
AI-generated descriptionThe impact of category on ratings
This stacked bar chart gives the percentage of each rating level within different categories. The aim is to show the impact of category on ratings. When the mouse hovers over each bar, you can see pop-ups of accurate percentages of each rating level within each category. The total percentage is 1, representing 100%