Skip to main content
100%

Activity6_Task2

✓ Published1🌍 Public
Sssuryateja804@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024
Forked from Hello VizHub

This stacked bar chart displays the percentage of IMDb rating levels across six movie genres, showing how rating distributions vary by genre. Each genre has a horizontal bar divided into five colored segments representing rating ranges from below 5.0 to above 8.5. The visualization uses d3.stack() to compute stacked segments, d3.scaleBand() for the categorical y-axis, and d3.scaleLinear() for the percentage x-axis. Hovering over any segment triggers a tooltip displaying the exact percentage for that rating level within the selected genre, with data sourced from a CSV file and rendered as SVG.

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