Skip to main content
100%

Task 9 question 2

✓ Published1🌍 Public
SSreeKohaliPatel@my.unt.edu
Last edited Apr 25, 2024
Created on Apr 25, 2024

This stacked bar chart shows the distribution of IMDb rating levels across six movie genres, where each bar represents the percentage of films within a genre falling into one of five rating brackets. The chart reveals that genres like Action and Comedy have higher proportions of lower ratings, while Documentary and Animation show more balanced distributions. Hovering over any bar segment displays an exact percentage tooltip. The visualization uses D3.js v7 with a stacked bar layout, employing `d3.stack()` for data transformation and `d3.scaleOrdinal` for coloring. Data is loaded from a local CSV file containing genre-specific rating percentages, and the chart is rendered as SVG.

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