College Interactive Color Legend
✓ Published1🌍 Public
This example visualizes the College Dataset, plotting PhD percentage against enrollment numbers for each institution, with color encoding the public or private status. Built with React and D3 v5, it uses a custom SVG renderer with scales for the axes and a categorical color scale for the legend. The interactive color legend allows hovering to highlight data points of a selected category, fading the rest, which is implemented through React state management and event handlers on the legend circles.
AI-generated descriptionA scatter plot of The College Dataset.
Enroll: number of new students enrolled. Phd: Percent of faculty with Ph.D's Private: Public/Private indicator.
MIT Licensed