🌍 Public
Viewing a saved revision (read-only)
56238a0a4af3401e9b770424dc6a2d41
testing
This example presents two scatter plots of the Penguins dataset, one comparing sepal length to sepal width and another comparing bill length to flipper length. The code uses D3's `scaleLinear`, `extent`, and axis components imported from `@curran/axis-labels` to render the plots. It leverages D3's `.join` operator for efficient incremental updates of SVG circles, with adjustable radius and opacity. The visualization is driven by the `viz` function, which takes column selectors and margin configuration as parameters, allowing simple reuse for multiple attribute pairs.
AI-generated descriptionA simple scatter plot with D3 showing the Penguins Dataset.
Challenge
- Fork this viz
- Modify it to show your data