Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Q5

Public visualization

Activity6_Q5

0 stars0🌍 Public
MMili Patel
Last edited Mar 29, 2025
Created on Mar 29, 2025
Forked from Activity6_Q4

This stacked bar chart shows the distribution of letter grades (A, B, C, D) across five school subjects, with each bar segment representing the percentage of students receiving that grade. The visualization uses D3 v7’s `d3.stack()` to aggregate the CSV data, `scaleBand` for the subject axis, and `scaleLinear` for the percentage axis. Hovering over a segment triggers a tooltip displaying the exact percentage via mouse events. The chart is rendered as SVG with color-coded segments, using `d3.axisLeft` and `d3.axisBottom` for axes.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed