Skip to main content
100%

Activity6_Task2

✓ Published0🌍 Public
LLakshmiPrasannaValdas@my.unt.edu
Last edited Apr 15, 2024
Created on Apr 15, 2024

This stacked bar chart shows the percentage distribution of IMDb rating levels (below 5.0, 5.0-6.5, 6.5-7.5, 7.5-8.5, above 8.5) across six movie genres, revealing how genre impacts audience ratings. Using d3.stack() to accumulate rating segments per genre and d3.scaleOrdinal() for color encoding, hovering over a bar segment displays an exact percentage via a custom tooltip. The SVG visualization, built with D3 v7, plots genres vertically against a linear x-axis, with gridlines and axis labels styled by custom CSS.

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 overeach bar, you can see pop-ups of accurte percentage of each rating level within each genre. Total percentage is 1, representing 100%.

MIT Licensed

Similar vizzes