Skip to main content
100%

Activity 6

✓ Published0🌍 Public
Iibrahimpatnamrohit1990@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

This stacked bar chart shows the percentage of IMDb ratings across five levels for six movie genres, highlighting how genre influences rating distributions. The code uses d3.stack() to create the stacked series, d3.scaleOrdinal() for color encoding, and d3.axisBottom() and d3.axisLeft() for axes. Hover interactions trigger tooltip pop-ups displaying exact percentages via d3.format. The visualization renders in SVG, with data loaded from a CSV file containing genre and rating proportions.

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