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.

2
Eeravellisaimeghana
Last edited Mar 29, 2022
Created on Mar 29, 2022

This reusable D3 scatter plot visualizes the Iris dataset, mapping petal and sepal dimensions for three species (setosa, versicolor, virginica) with distinct colors. A setInterval animation cycles through different x-axis attributes (petal_width, sepal_width, petal_length, sepal_length) every few seconds, updating the axes and point positions. Built with d3.scaleLinear, d3.extent, d3.axisLeft, and d3.axisBottom, the plot renders as an SVG with circles and includes custom legends and axis labels. The data comes from a CSV loaded via d3.csv.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed