Skip to main content
100%

College Interactive Color Legend

✓ Published1🌍 Public
Yyinhao0424
Last edited Oct 9, 2019
Created on Oct 9, 2019

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 description

A 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

Similar vizzes