Task8_task2
This stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, showing the proportion of films within each rating bracket as a fraction of one. The chart uses horizontal bars segmented by rating categories, with color coding to distinguish the five rating levels. Hovering over any segment reveals an exact percentage via a tooltip. The visualization is built with D3 v7, using `d3.stack` for data aggregation and `d3.scaleOrdinal` for color mapping. Data is sourced from a static CSV file, and the rendering is done through SVG elements.
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%.