Skip to main content
100%

Activity 6_Task 2

✓ Published1🌍 Public
DDipesh
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the percentage distribution of IMDb movie ratings across six genres, showing how genre influences rating outcomes. Each bar represents a genre and is divided into five rating categories, from below 5.0 to above 8.5, with tooltips revealing exact percentages on hover. The visualization uses d3.stack to structure the data, d3.scaleBand for the y-axis, and d3.scaleLinear for the x-axis, rendering SVG rectangles. Data comes from the embedded CSV file, and d3.format displays percentage values with two decimal places.

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