Task6_Tutorial_PR
This stacked bar chart visualizes the impact of movie genre on IMDb ratings, showing the percentage distribution of five rating brackets (from below 5.0 to above 8.5) across six genres. The data is loaded from a local CSV file and rendered as horizontal bars using d3.stack and d3.scaleBand. Hovering over any segment displays a tooltip with the exact percentage, while a color-coded legend distinguishes the rating categories. All elements are drawn as SVG shapes within a d3.v7 selection.
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%.