Fork of IMDb Movie ratings
This stacked bar chart shows the distribution of IMDb movie ratings across six genres, with each bar segmented into five rating categories. The visualization reveals how genres like Documentary skew toward higher ratings, while Action films cluster at lower scores. Built with D3 v7, the chart uses d3.stack() to compute stacked segments, d3.scaleLinear() for percentages, and d3.scaleBand() for genre categories. Hovering over any segment displays a tooltip showing the exact percentage for that rating level within the genre, using d3.csv() to load the pre-aggregated dataset.
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%.