Skip to main content
100%

Activity6_Task2

✓ Published0🌍 Public
Vvankayalapatimounika2000@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Activity-6

This stacked bar chart shows the percentage distribution of IMDb rating levels within six movie genres, with hover tooltips revealing exact percentages. Each genre’s stacked bars represent five rating bands, from “below 5.0” to “above 8.5,” totaling 100%. The visualization uses D3 v7’s `d3.stack()` to compute stacked series, `d3.scaleOrdinal` for color mapping, and `d3.scaleLinear` and `d3.scaleBand` for axes. SVG rectangles render the bars, and mouse events trigger tooltip display with formatted percentages using `d3.format`. Data comes from a CSV file containing pre-aggregated genre ratings.

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