Skip to main content
Public

Share visualization

Loading preview…

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

2
UUzoemeka Okechukwu Innocent
Last edited Aug 9, 2023
Created on Aug 9, 2023

This example visualizes the Iris dataset as a scatter plot, mapping petal length on the x-axis and sepal length on the y-axis. Each data point is rendered as a circle on a full-screen SVG canvas using D3 v7. The code loads the CSV data from a GitHub Gist via `d3.csv`, then uses `d3.scaleLinear` with `d3.extent` to compute the scales. Axes are added with `d3.axisLeft` and `d3.axisBottom`, while the tick labels are enlarged to 24 pixels for readability.

AI-generated description

D3 Scatter Plot

Venilla Html Javascript D3 Scatter Plot

Comments

Sign in to join the discussion.

MIT Licensed