Skip to main content
100%

Activity6_Task2

✓ Published1🌍 Public
AAnilreddyveeraiahgari@my.unt.edu
Last edited Apr 4, 2025
Created on Apr 4, 2025
Forked from Hello VizHub

This stacked bar chart displays the percentage distribution of IMDb rating levels across six movie genres, revealing how genre influences audience scores. The visualization uses D3.js v7 with SVG rendering to create horizontal stacked bars, where each genre’s total percentage sums to 100%. A custom tooltip, implemented via D3 event handlers, shows precise rating percentages on mouseover. The chart employs `d3.stack()` for data stacking and `d3.scaleOrdinal` for color mapping, with axes and labels rendered using `d3.axisBottom` and `d3.axisLeft`.

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