Skip to main content
100%

Activity Task 2

✓ Published0🌍 Public
BBamanGayathri
Last edited Oct 19, 2024
Created on Oct 18, 2024
Forked from Hello VizHub

This visualization presents a stacked horizontal bar chart comparing the distribution of movie ratings by genre, using data from an IMDb dataset. Each bar segment represents a specific rating category, with the length of each segment corresponding to the proportion of ratings within that genre. The chart is rendered as an SVG using D3 v7, employing `d3.stack()` to create the stacked segments, `d3.scaleOrdinal()` for color assignment, and `d3.axisLeft`/`d3.axisBottom` for axes. Interactive tooltips appear on hover, displaying the exact percentage for each rating category.

AI-generated description
MIT Licensed

Similar vizzes