Skip to main content
Public

Share visualization

Loading preview…

Scatter Plot with Color

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Scatter Plot with Color

1
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

Comments

Sign in to join the discussion.

MIT Licensed