Skip to main content
Public

Share visualization

Loading preview…

Fork of Simple Scatter Plot

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

Fork of Simple Scatter Plot

1
MMahbub hussain
Last edited Dec 3, 2024
Created on Dec 3, 2024

This example displays the relationship between bill length and flipper length in the Penguins dataset, plotting each penguin as a semi-transparent circle that reveals the overall distribution and correlation between the two measurements. The visualization uses D3.js, leveraging functions like `scaleLinear` for axis scaling, `axisLeft` for the y-axis, and the custom `viz` function to render axes, labels, and data points. The code implements a scatter plot programmatically, importing the dataset from `@curran/penguins` and styling the plot with a light gray inner rectangle and adjustable circle radius and opacity.

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