Skip to main content
100%

testing

✓ Published0🌍 Public
Ssunnyshih0312@gmail.com
Last edited Sep 15, 2024
Created on Sep 14, 2024

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 description

A simple scatter plot with D3 showing the Penguins Dataset.

Challenge

  • Fork this viz
  • Modify it to show your data
MIT Licensed

Similar vizzes