Skip to main content
Public

Share visualization

Loading preview…

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

0
Sson.sultan@yahoo.com
Last edited Oct 26, 2025
Created on Oct 26, 2025

This example presents a scatter plot of the Iris dataset, rotating through four numeric attributes as the x-axis variable on a two-second interval, with the y-axis fixed to sepal length. The plot animates smoothly by repeatedly invoking a reusable `scatterPlot` function, which uses D3’s scaleLinear, extent, axisLeft, and axisBottom to render axes and circles. Data is loaded from a GitHub Gist via `d3.csv`, with parsing of numeric columns, and the visualization is drawn as SVG with a full-window canvas, featuring a custom font and no user interaction.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed