Viewing a saved revision (read-only)
1a3299abe0fc4d83945b6627fdec5d31
Activity6_Task2
This stacked bar chart visualizes IMDb movie ratings across six genres, showing the proportion of films in five rating brackets from below 5.0 to above 8.5. A tooltip displays the exact percentage for each rating segment on mouseover. Built with D3 v7, the visualization uses d3.stack() to compute the stacked series, d3.scaleBand for genre positioning, and d3.scaleLinear for percentage values, rendering as SVG with interactive hover effects that adjust opacity and reveal detailed data.
AI-generated descriptionThe impact of genre on movie ratings
To show how genre affects the ratings of movies this stacked bar chart shows the proportion of each rating level based on different movie genres. As the mouse pointer is placed over any bar, a message appears indicating the exact figure for each rating level in that genre.