Skip to main content
Public

Share visualization

Loading preview…

Fork of D3 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 D3 Scatter Plot

0 stars0Public
NNaimisha-M
Last edited Jun 25, 2022
Created on Jun 25, 2022
Forked from D3 Scatter Plot

This example shows a scatter plot of the Iris Dataset, with sepal length plotted on the y-axis and petal length on the x-axis. The visualization uses D3 v6 and renders circles as SVG elements, with axes created using `axisLeft` and `axisBottom`. The code loads CSV data via `d3.csv`, scales the values with `scaleLinear`, and computes the domain from the data’s extent using `d3.extent`. The plot’s width and height are set to the full window size, with margins defining the axis positions.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed