Activity 6 - Task2
✓ Published0🌍 Public
A stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, with each bar divided into five rating brackets from "below 5.0" to "above 8.5." The chart uses a horizontal layout where genre categories appear on the y-axis and percentage values on the x-axis, colored segments representing each rating range. Built with D3 v7, the visualization employs d3.stack() for data transformation, d3.scaleBand() and d3.scaleLinear() for positioning, and d3.axisBottom() for the percentage scale. Interactive tooltips display exact percentages on mouseover, using data from the provided CSV file rendered as SVG elements.
AI-generated descriptionMIT Licensed