Skip to main content
100%

HW1_Simple Scatter Plot

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

This example shows the relationship between bill length and flipper length in the Penguins Dataset, with each penguin represented as a circle positioned by two linear scales. The scatter plot uses D3's `scaleLinear` and `extent` functions to map the data to screen coordinates, along with `axisLeft` for the y-axis. Axes and labels are rendered using the `@curran/axis-labels` library, which adds text for both dimensions. The visualization is built entirely with plain SVG elements (`rect` and `circle`) and reads data from the `@curran/penguins` package.

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