Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Activity 6 Tutorial 2

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed