Viewing a saved revision (read-only)
6198c1044d744c4dac201a2cd4d4b264
Activity_6_2
This stacked bar chart visualizes the distribution of movie ratings across six genres, showing the percentage of ratings in five categories from "below 5.0" to "above 8.5". The chart uses `d3.stack()` and `d3.scaleOrdinal` for color encoding, with a linear x-axis for percentages and a band scale for genres. Hovering over a segment triggers `d3.select` and tooltip updates via `d3.mousemove`, displaying the exact percentage. The SVG is rendered with `d3.axisBottom` and `d3.axisLeft`, while data is loaded from a CSV file containing the genre and rating proportions.
AI-generated descriptionReal Estate Sales
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%.