Skip to main content
100%

Activity6_Tutorial2

✓ Published1🌍 Public
Ggreeshmareddy135@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from IMDb Movie ratings

A stacked bar chart visualizes the percentage distribution of IMDb rating categories within each movie genre, using horizontally segmented bars to show proportions that total 100%. Hovering over any segment reveals a tooltip displaying the exact percentage for that rating level and genre. The chart is built with D3 v7, using `d3.stack()` for data stacking, `d3.scaleBand()` and `d3.scaleLinear()` for axes, and `d3.scaleOrdinal()` for color encoding. Data comes from a CSV file containing genre and rating percentage columns, rendered as SVG with interactive mouse event handlers.

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