Skip to main content
100%

Activity6_Q3

✓ Published2🌍 Public
MMili Patel
Last edited Mar 29, 2025
Created on Mar 29, 2025

This stacked bar chart visualizes the percentage distribution of grades (A, B, C, D) across five school subjects, with each bar segment color-coded by grade category. The chart uses `d3.csv` to load the data, `d3.stack` to compute cumulative values, and `d3.scaleBand` with `d3.scaleLinear` to map subjects and percentages. Hovering over a segment reveals a tooltip showing the grade and its percentage. SVG rectangles are rendered using D3's `selectAll` and `join` operations, with axes and labels drawn via `d3.axisLeft` and `d3.axisBottom`.

AI-generated description
MIT Licensed

Similar vizzes