Skip to main content
100%

Activity 6 _Task 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 IMDb movie ratings across five genres, showing the proportion of films falling into five rating brackets from below 5.0 to above 8.5. Each horizontal bar represents a genre, divided into colored segments corresponding to rating categories, with interactive hover tooltips revealing precise percentages. The visualization uses D3.js (v7) with SVG rendering, utilizing `d3.stack()`, `d3.scaleBand()`, and `d3.scaleLinear()` to construct the chart. Data is loaded from a CSV file containing genre and rating percentage columns.

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