Skip to main content
Public

Share visualization

Loading preview…

Scatter Plot Template

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 Template

1
Ppkdvalis
Last edited Nov 29, 2023
Created on Nov 29, 2023

This scatter plot template displays the Iris dataset, plotting petal length against sepal length for individual flower samples, with hover tooltips revealing species names. The visualization uses D3 v7’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs to map data coordinates to SVG circles within a full-window responsive layout. Data is loaded asynchronously via `d3.csv` from a remote GitHub Gist, parsed with numeric coercion, and rendered using D3’s data-join pattern with `selectAll(...).join(...)` to bind circles and append titles. Axes are added as SVG groups with margin-based transforms.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed