Viewing a saved revision (read-only)
5c49976ee55d415882b4c6fbb4a54f43
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 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%.