Skip to main content
100%

Activity6_Task-2

✓ Published1🌍 Public
Mmaneeshraja47@gmail.com
Last edited Oct 30, 2025
Created on Oct 30, 2025
Forked from Hello VizHub

This stacked bar chart visualizes the percentage distribution of IMDb ratings across six movie genres, with each bar segment representing a rating level from below 5.0 to above 8.5. A hover tooltip displays the exact percentage for each segment. Built with D3 v7 and SVG rendering, the chart uses `d3.stack()` to compute the stacked series, `d3.scaleOrdinal` for color mapping, and `d3.axisBottom` and `d3.axisLeft` for axes. The data comes from a CSV file containing genre-specific rating percentages.

AI-generated description

The impact of genre on movie ratings

This stacked bar chart gives the percentage of each rating level within different movie genres. The aim is to show the impact of genre on movie ratings. When the mouse hovers over each bar, you can see pop-ups of accurate percentage of each rating level within each genre. Total percentage is 1, representing 100%.

MIT Licensed

Similar vizzes