1
This stacked bar chart visualizes the distribution of grade ranges (from 5.0-6.0 to above 9.0) across six student groups, showing how each grade category contributes to a total of 100% per student. The chart uses d3.stack() to create stacked segments, d3.scaleBand() for the categorical y-axis, and d3.scaleLinear() for the percentage x-axis. Hovering over a segment triggers a tooltip displaying the exact percentage for that grade range within the selected student group. Data is loaded from a CSV file and rendered as SVG elements.
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%.