Skip to main content
100%

Activity6_Task2

✓ Published1🌍 Public
SSatish Nallamadugu
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the impact of movie genre on IMDb rating distributions, showing the percentage of films within five rating bands across six genres. Hovering over any segment triggers a tooltip displaying the exact percentage value. The visualization uses d3.stack() to compute the stacked layout, d3.scaleBand for the categorical y-axis, d3.scaleLinear for the percentage x-axis, and d3.scaleOrdinal with a custom color palette. Data is loaded from a CSV file and rendered as SVG rectangles with mouse event listeners for interactivity.

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