Skip to main content
100%

Activity6_task2

✓ Published1🌍 Public
KKritin Kesav
Last edited Apr 11, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

A stacked bar chart visualizes the impact of movie genre on IMDb ratings, with each bar showing the proportion of films across five rating bands from “below 5.0” to “above 8.5.” The chart makes it clear that documentaries skew toward higher ratings, while action films cluster at the lower end. Built with D3 v7, the visualization uses `d3.stack()` to compute the stacked segments and `d3.scaleBand` for the categorical genre axis. Hovering over a segment triggers a tooltip that displays the exact percentage for that rating level within the genre. Data comes from a CSV file loaded with D3’s data handling methods.

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