Skip to main content
100%

Observable Plot Scatterplot with Color

✓ Published0🌍 Public
CCurran Kelleher
Last edited Jan 22, 2024
Created on Jan 22, 2024

This example displays a scatterplot of penguin measurements, with each dot positioned by flipper length and body mass, and colored by species. Built using Observable Plot’s `Plot.plot` API, it renders dots via `Plot.dot` and includes a legend, grid, and margins configured through the `color` and `inset` options. The chart reads data from the `@curran/penguins` package and dynamically resizes to its container’s dimensions.

AI-generated description

This example was ported from Observable: Scatterplot with color.

MIT Licensed

Similar vizzes