Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

IMDb Movie ratings

Public visualization

IMDb Movie ratings

0 stars0🌍 Public
Ssaikrishnabussa
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from HTML Starter

This visualization presents a horizontal stacked bar chart showing the distribution of IMDb ratings across six movie genres, where each bar segment represents the proportion of movies within a rating bracket (below 5.0, 5.0–6.5, 6.5–7.5, 7.5–8.5, above 8.5). The chart uses `d3.stack()` to build the stacked structure and `d3.scaleOrdinal` for color encoding. Data comes from `data.csv` via `d3.csv()`. A hover tooltip, implemented with D3 DOM selection and event handlers, displays the exact percentage for each rating category within a genre. The SVG output is rendered using D3 v7 and React.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed