Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 task 2 q1

Public visualization

Viewing a saved revision (read-only)

c9bef07a42624b6f85ee22a3b8cdb92f

Activity 6 task 2 q1

0 stars0🌍 Public
LLohitha Konidena
Last edited Apr 1, 2025
Created on Apr 1, 2025
Forked from Hello VizHub

This chart shows the percentage distribution of IMDb ratings across six movie genres, splitting each genre into five rating bands from “below 5.0” to “above 8.5.” Using stacked horizontal bars, the visualization highlights how action films skew toward lower ratings while documentaries and animations achieve higher scores. Built with D3 v7, the code uses `d3.stack()` to compute the stacked segments, `d3.scaleOrdinal` for color mapping, and `d3.scaleBand` for the genre axis, with an interactive tooltip displaying exact percentages on mouseover. Data comes from the inline CSV file.

AI-generated description