Skip to main content
100%

activity6_tutorial

✓ Published0🌍 Public
Vvidiyalasahithi1999@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024

This stacked bar chart shows the distribution of IMDb ratings across six movie genres, with each bar segmented by rating levels from “below 5.0” to “above 8.5.” Hovering over a segment reveals the exact percentage of that rating category within the genre, as the bars are normalized to sum to 100%. The visualization uses D3 v7’s `d3.stack()` to compute the stacked segments and `d3.scaleOrdinal` for color encoding, rendered as SVG with mouseover tooltips for interactive exploration. The data is loaded from a 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