Activity_6_Question_2
This stacked bar chart visualizes the distribution of rating categories within different subjects, showing how each subject’s marks are proportionally divided across five bins (e.g., below 35, 36-45, up to 75-100). It uses `d3.stack` to layer the rating proportions per subject on the y-axis, with a linear x-axis representing percentages. Interactive hover events display a tooltip for precise percentage values. The chart is rendered as SVG and relies on `d3.axisBottom` for the x-axis, `d3.axisLeft` for the y-axis, and a custom `d3.select`-based tooltip, with styling via CSS.
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%.