Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

2eefbed3e11b4b5492a2ff77314c18ee

Activity6_Task2

0 stars1🌍 Public
Tthoutunikhitha@gmail.com
Last edited Apr 4, 2025
Created on Apr 4, 2025
Forked from Hello VizHub

This stacked bar chart from D3 v7 visualizes the distribution of IMDb ratings across six movie genres, using d3.stack and d3.scaleOrdinal for color encoding. Each horizontal bar represents a genre, segmented into five rating categories from “below 5.0” to “above 8.5,” with segment lengths proportional to the percentage of films in that rating band. The chart employs d3.axisBottom for the percentage scale and d3.scaleBand for the categorical genre axis. Hovering over a segment triggers an HTML tooltip via mouseover events, displaying the exact percentage for that rating level within the selected genre, with all values summing to 100%. The data comes from a local CSV file.

AI-generated description