Skip to main content
100%

Activity6_Task2

✓ Published0🌍 Public
AAftab Hussain
Last edited Mar 31, 2025
Created on Mar 31, 2025
Forked from Hello VizHub

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 description
MIT Licensed

Similar vizzes