Fork of Responsive Scatter Plot
✓ Published0🌍 Public
This example presents a responsive scatter plot that visualizes the relationship between bill length and flipper length for penguins, using data from the `@curran/penguins` package. The plot renders as an SVG with gray axes, labeled axis titles, and semi-transparent circles, with axis scales recalculated automatically upon window resize via `@curran/responsive-axes`. The implementation follows a grammar of graphics approach, employing D3's `scaleLinear`, `extent`, and `axisLeft` APIs to map data coordinates, while the `observeResize` function triggers re-rendering with updated dimensions.
AI-generated descriptionA responsive scatter plot.
MIT Licensed