Skip to main content
Public

Share visualization

Loading preview…

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

Reusable_D3_Scatter_Plot.

45
Ssaishashank
Last edited Mar 22, 2023
Created on Mar 22, 2023

This interactive scatter plot animates through different axis pairings from the Iris dataset, cycling between petal width, sepal width, petal length, and sepal length on the x-axis while keeping sepal length on the y-axis. Using React and D3 v6, it leverages `scaleLinear`, `axisLeft`, `axisBottom`, and `csv` to load and render data as colored SVG circles grouped by species. A `setInterval` triggers transitions in the reusable `scatterPlot()` function, updating axes and labels dynamically.

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