Skip to main content
100%

Activity6_Task2

✓ Published1🌍 Public
SSowjanya Devupalli
Last edited Oct 17, 2024
Created on Oct 17, 2024
Forked from IMDb Movie ratings

This stacked bar chart shows the distribution of IMDb ratings across movie genres, with each bar segment representing the percentage of films within a specific rating bracket. The visualization uses a horizontal stacked bar layout, with genres on the y-axis and percentage on the x-axis. Hovering over any segment displays a tooltip with the exact percentage for that rating category within the genre. The chart is built with D3.js v7 and rendered as an SVG, using the `d3.stack()` function to compute the stacked segments and `d3.scaleOrdinal()` for color encoding. Data is loaded from a local 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