question 3
This visualization uses a stacked dot plot to show the percentage distribution of IMDb movie ratings across six genres, revealing how genres like Documentary skew toward higher ratings while Action skews lower. Each genre row displays colored circles representing five rating bands, with hover interactions revealing exact percentages via a tooltip. Built with D3 v7, the chart uses ordinal color scaling, linear and band scales, and SVG rendering, with data loaded from a CSV file using d3.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%.