Skip to main content
100%

Activity 6_Question 2

✓ Published0🌍 Public
MMonish Galla
Last edited Apr 6, 2024
Created on Apr 2, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the distribution of movie ratings across six genres, using data from a CSV file. The chart shows the proportion of films falling into rating bands from "Below 5.0" to "Above 8.5" for each genre, with colors distinguishing the rating categories. Built with D3.js version 7, the visualization uses `d3.stack()` to create the stacked segments and `d3.scaleOrdinal` for color mapping. Hovering over any segment reveals an exact percentage via a tooltip, implemented with D3's mouseover events.

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