Skip to main content
100%

Fork of task 8-part 2

✓ Published0🌍 Public
Bbhavithamanyam@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024

This stacked bar chart visualizes the impact of movie genre on ratings, showing the percentage distribution across five rating levels for each genre in the dataset. The chart uses the D3 v7 library to process data with `d3.stack()` and render SVG rectangles, with hover interactions displaying exact percentages via a custom tooltip. Ratings are encoded as stacked segments on a linear x-axis, while genres are positioned on a band scale y-axis, with an ordinal color scale distinguishing rating categories.

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