assignment
✓ Published0🌍 Public
HHarshithaAru06
Last edited Oct 19, 2025
Created on Oct 19, 2025
Forked from Fork of Refactored Bar chart with React & D3
This visualization shows average student GPA across different majors, using a horizontal bar chart where bar length encodes the numeric value and vertical position distinguishes each category. Built with React and D3 v7, it sorts the data in descending order and maps values to a linear scale for bar width while a band scale positions each major. The bars are rendered as `<rect>` elements with hover effects that adjust opacity and fill color. The chart includes labeled axes, gridlines, and loads CSV data from a GitHub Gist through a custom `useData` hook with `d3.csv`.
AI-generated descriptionMIT Licensed