Skip to main content
100%

Activity6_Task2

✓ Published1🌍 Public
MManojsai Bangaru
Last edited Mar 30, 2025
Created on Mar 30, 2025
Forked from Hello VizHub

This stacked bar chart shows the distribution of IMDb ratings across six movie genres, with each bar segmented into five rating categories from "below 5.0" to "above 8.5." The horizontal bars reveal how genres like Documentary skew toward higher ratings while Action concentrates in lower ranges. Each segment's precise percentage appears in a tooltip on hover. The visualization uses D3.js v7 with `d3.stack()` for bar composition, `d3.scaleBand()` for the categorical y-axis, and `d3.scaleLinear()` for the percentage scale, rendering as SVG with custom CSS styling.

AI-generated description

The 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

Similar vizzes