Skip to main content
100%

Activity 8_Task 2 Tutorial

✓ Published1🌍 Public
UUthkarsh Reddy Junuthula
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This visualization uses a stacked bar chart to show the percentage of IMDb movie ratings (below 5.0, 5.0–6.5, 6.5–7.5, 7.5–8.5, above 8.5) across six genres, making it clear how distributions differ—e.g., Action skews low, Documentary high. Built with D3 v7 and SVG, it employs `d3.stack`, `d3.scaleLinear`, `d3.scaleBand`, and `d3.axisBottom`/`d3.axisLeft`. Hovering a bar segment displays a tooltip with the exact percentage for that rating category, using `mouseover`, `mousemove`, and `mouseout` events.

AI-generated description

The impact of genre on movie ratings

The above stacked bar chart shows the percentage of each rating category in different movie genres with the goal of demonstrating how genre affects movie ratings. As we move out cursor onto any of the bars, a pop-up appears with the exact percentage of each rating category for every genre. The total percentage is represented by the number 1, which is 100%.

MIT Licensed

Similar vizzes