Skip to main content
100%

Activity8Tutorial2

✓ Published1🌍 Public
BBindumadhavi
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from IMDb Movie ratings

This stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, showing the percentage of films falling into five rating bands. The chart uses `d3.stack()` to layer rating categories within each genre, with hover interactions triggering tooltips that display precise percentages via `d3.select` and an HTML div. Data is loaded from a CSV file using `d3.csv`, and SVG rendering applies `d3.scaleOrdinal` for color encoding and `d3.scaleBand` for genre positioning. The chart includes a custom legend and axis labels rendered with D3’s axis generators.

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