Skip to main content
100%

Activity6-Task2

✓ Published0🌍 Public
Aanjalimadhavi98@gmail.com
Last edited Oct 19, 2024
Created on Oct 19, 2024
Forked from IMDb Movie ratings

This stacked bar chart visualizes the percentage distribution of IMDb rating categories across six movie genres, with each bar segment representing a rating range from “below 5.0” to “above 8.5.” Hovering over any segment reveals its exact percentage, and the total for each genre sums to 100%. The chart uses d3.stack for data stacking, d3.scaleBand for the categorical genre axis, and d3.scaleLinear for the percentage axis. SVG rendering and a custom tooltip created with d3 selection methods provide the interactive feedback, while data is loaded from an external CSV file.

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