Skip to main content
100%

TASK-8

✓ Published0🌍 Public
Ppraneeth7222@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the distribution of IMDb rating categories across six video game genres, using percentages that sum to 100% for each genre. The D3.js v7 code builds the horizontal bars with `d3.stack()` and `d3.scaleOrdinal` for color mapping, while hover interactions trigger tooltips showing precise percentage values via `d3.format`. The SVG rendering includes a linear x-axis for percentages and a band scale for genres, with data loaded from a CSV file displaying five rating brackets from below 5.0 to above 8.5.

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