Scatter Plot
✓ Published0🌍 Public
This example displays a scatter plot of 2018 football player data, comparing goals against shots taken. Each data point is a circle colored by the player’s league, with league-specific colors like blue for the Premier League and red for the Bundesliga. The visualization uses D3’s `scaleLinear` and `extent` to map the numeric axes, along with custom axis label rendering from the `@curran/axis-labels` library. A light gray `rect` fills the plot’s inner region, while circles are drawn with configurable radius and opacity, based on data from the `@eschuman20/footballscorers` package.
AI-generated descriptionMIT Licensed