Activity6-Task2
✓ Published1🌍 Public
A stacked bar chart visualizes the percentage distribution of IMDb ratings across six movie genres, from documentary to action. Each bar segment represents a rating bracket, colored distinctly, with hover tooltips revealing exact percentages. Built with D3 v7, the visualization uses `d3.stack()` to compute layered data and `d3.scaleOrdinal` for color mapping, rendering bars in SVG with interactive mouse events for tooltip display.
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%.
MIT Licensed