Skip to main content
100%

Activity6_Task2

✓ Published0🌍 Public
Rragasrikakarla27@gmail.com
Last edited Oct 30, 2025
Created on Oct 30, 2025
Forked from Activity6_Task2

This example visualizes the distribution of IMDb movie ratings across different genres, using a 100% stacked horizontal bar chart. Each genre (Documentary, Drama, Comedy, etc.) is represented by a bar composed of segments corresponding to rating categories (below 5.0 to above 8.5), with segment lengths proportional to the percentage of movies in that rating band. Rendered as an SVG using D3 v7, the chart employs `d3.stack()` to compute the stacked segments, `d3.scaleBand` for the y-axis genres, and `d3.scaleLinear` for the x-axis percentages. A tooltip displays the exact percentage when hovering over a segment, and the data is loaded from `data.csv`.

AI-generated description
MIT Licensed

Similar vizzes