Activity6_Task2
✓ Published0🌍 Public
This visualization shows the distribution of IMDb ratings across six movie genres using stacked horizontal bars, with each genre displaying the percentage of films in five rating categories from "below 5.0" to "above 8.5." The chart makes it clear that Documentary films have the highest proportion of high ratings, while Action movies concentrate heavily in the lowest rating bracket. Built with D3 v7 and rendered as SVG, the code uses `d3.stack()` to create stacked segments, `d3.scaleBand()` for the categorical genre axis, and `d3.scaleLinear()` for the percentage axis. Interactive hover effects trigger tooltips displaying exact percentage values, and the visualization loads data from a local CSV file.
AI-generated descriptionMIT Licensed