Skip to main content
100%

Activity 6_Task 2

✓ Published1🌍 Public
Aanusha.chilkamarri26@gmail.com
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

This stacked bar chart shows the distribution of IMDb movie ratings across six genres, with each bar divided into five rating categories from “below 5.0” to “above 8.5.” The chart reads the proportions of each rating bracket per genre from a CSV file using d3.csv, then applies d3.stack to create the layered segments and d3.scaleOrdinal for color encoding. Each segment is rendered as an SVG rect with d3.axisBottom and d3.scaleBand for the genre categories, and hovering over a segment reveals its exact percentage via a tooltip.

AI-generated description
MIT Licensed

Similar vizzes