Question 2 Aadesh
This stacked bar chart shows the distribution of movie ratings across six categories, with each bar divided into five rating brackets from “below 5.0” to “above 8.5” that sum to 100%. The visualization uses D3 v7’s `d3.stack()` and `scaleBand`/`scaleLinear` to position rectangles in an SVG, with a color ordinal scale differentiating rating levels. Hovering over a segment triggers a custom tooltip, and axes are rendered via `d3.axisBottom` and `d3.axisLeft`. Data comes from a CSV file with precomputed proportions.
AI-generated descriptionThe impact of genre on movie ratings
The stacked bar chart presents the impact of different categories on the distribution of rating levels. Each bar represents a category, and the sections within the bars show the percentage of each rating level within that category. The total percentage across all rating levels within a category sums to 100%.