🌍 Public
Viewing a saved revision (read-only)
eca98c421ea34120bed3a85f11bc6319
Activity 6 task 2
This stacked bar chart shows the percentage distribution of IMDb ratings across six movie genres, with each genre’s bars summing to 100%. It uses d3.stack() to aggregate ratings into five categories, d3.scaleBand for the genre axis, and d3.scaleLinear for percentages. Hovering highlights segments and displays a tooltip with exact percentages via d3.selector. The SVG is rendered with d3.v7, data from a CSV file, and styled with custom CSS.
AI-generated description