Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Reusable D3 Scatter Plot

Public visualization

Viewing a saved revision (read-only)

0226fc9959f247769a9be1e3060ebe54

Fork of Fork of Reusable D3 Scatter Plot

0 stars1🌍 Public
BBHUMIKA CHUNDU
Last edited Oct 26, 2025
Created on Oct 26, 2025

This example presents a reusable D3 scatter plot that visualizes the Iris dataset, dynamically cycling through different x-axis dimensions every two seconds. The code imports specific D3 v6 modules including `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to construct the plot, along with `csv` and `select` for data loading and DOM manipulation. The visualization renders as a full-window SVG with animated transitions between petal width, sepal width, petal length, and sepal length axes, using a `setInterval` callback. Data is fetched from a GitHub Gist, and circles are joined and updated using the `.join()` pattern.

AI-generated description