Task-2Q1
This stacked bar chart shows how student grades are distributed across five subjects, with each bar representing a student and colored segments showing the percentage of their total score in each subject. The visualization uses d3.stack() to create stacked series and d3.scaleOrdinal for color mapping, while d3.axisBottom formats tick labels as percentages. A tooltip appears on mouseover, displaying the exact percentage for each subject segment using d3.format. The data comes from a CSV file where scores are normalized to sum to 1 for each student.
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%.