🌍 Public
Viewing a saved revision (read-only)
6f7dbab912bd4bc6a14165351a760209
Task 2 Anusha H
This chart shows the distribution of IMDb movie ratings across six genres, using stacked horizontal bars where each segment represents the proportion of movies falling into one of five rating bands (below 5.0 up to above 8.5). The code uses d3.stack to create the stacked series, d3.scaleBand for the categorical genre axis, and d3.scaleOrdinal with a custom color palette for the rating categories. The SVG rendering relies on D3 v7’s axis generators, and a custom tooltip displays the exact percentage for each segment on hover.
AI-generated description