Viewing a saved revision (read-only)
d21a29e3fb7342be99ab71e5ea3cf530
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
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%.