Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of 6.2

Public visualization

Fork of 6.2

0 stars1๐ŸŒ Public
Pperamranji
Last edited Mar 30, 2025
Created on Mar 30, 2025
Forked from 6.2

This is a stacked horizontal bar chart showing the percentage distribution of movie ratings across five genres (Adventure, Fantasy, Sci-Fi, Thriller) and five rating categories (Action, Comedy, Drama, Horror, Romance), based on IMDb data. The chart uses D3.js v7 with the `d3.csv` loader to read `data.csv`, `d3.stack()` to create the stacked bars, and `d3.scaleOrdinal` for color mapping. Hovering over a segment triggers a tooltip displaying the precise percentage, while a legend on the right identifies each rating category.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed