Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 Tutorial 2

Public visualization

Viewing a saved revision (read-only)

508a6d3eb42b462b998dd699fa8d4c27

Activity 6 Tutorial 2

0 stars1🌍 Public
BBharath Vupputuri
Last edited Apr 4, 2025
Created on Apr 4, 2025
Forked from Hello VizHub

This visualization shows the distribution of IMDb movie ratings across six genres, using horizontally stacked bar charts where each bar segment represents a rating category from "below 5.0" to "above 8.5" as a percentage. The code uses D3 v7 to load CSV data, applies `d3.stack` to compute stacked series, and renders the result as SVG rectangles with `d3.scaleLinear` and `d3.scaleBand`. A custom tooltip displays exact percentages on mouseover, with legend colors mapped via `d3.scaleOrdinal`.

AI-generated description