Skip to main content
100%

Question2

✓ Published0🌍 Public
Ttejaswiteju9811@gmail.com
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Activity_Task2

This stacked bar chart shows the distribution of IMDb ratings across movie genres, with each bar segmented by rating levels and hover tooltips revealing exact percentages. The visualization uses d3.stack() to compute stacked segments, d3.scaleBand() for genres on the y-axis, and d3.scaleLinear() for percentages on the x-axis, rendered as SVG rectangles with d3.scaleOrdinal() color mapping. User interaction highlights bars with opacity changes and displays formatted percentage values via d3.format(), with data loaded from a CSV file containing genre and rating 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%.

MIT Licensed

Similar vizzes