Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable D3 Scatter Plot with IRIS Data

Public visualization

Viewing a saved revision (read-only)

624803280aa145919cdd2ff1419de125

Reusable D3 Scatter Plot with IRIS Data

0 stars0🌍 Public
DDivyasri0310
Last edited Mar 13, 2023
Created on Mar 12, 2023

This example presents a reusable scatter plot of the Iris dataset, cycling through four attribute pairs every two seconds. It renders SVG symbols whose shapes encode the flower species, with axes updating to reflect the current dimensions being compared. Built with D3 v6, the visualization uses `scaleLinear`, `scaleOrdinal`, `symbol` for mark generation, and `axisBottom`/`axisLeft` for scales. Data is loaded via `csv` from a GitHub gist, while a `setInterval` loop reconfigures the plot’s accessor functions to animate between variable combinations.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.