Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 _Task 2

Public visualization

Viewing a saved revision (read-only)

006c3ae64fc54576adcb0fc734d9bf45

Activity 6 _Task 2

0 stars0🌍 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%.