Skip to main content
100%

Scatter Plot with Color

✓ Published1🌍 Public
DDonald Bagwell
Last edited Apr 15, 2024
Created on Apr 14, 2024

This scatter plot displays the Palmer Penguins dataset, showing the relationship between bill length and flipper length, with each species’ data points distinguished by color. The visualization uses D3’s `scaleLinear` and `scaleOrdinal` APIs to map the quantitative axes and categorical species colors, while custom axis labels and a gray inner rectangle frame the plot. The code filters data through `extent` to set scale domains and renders circles with per-point opacity and radius, making species clusters immediately visible.

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