Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Iris Reusable D3 Scatter Plot

Public visualization

Viewing a saved revision (read-only)

da09559387bf4b9bbff48770992bc2f3

Iris Reusable D3 Scatter Plot

0 stars0🌍 Public
Ddldowning
Last edited Mar 26, 2023
Created on Mar 26, 2023

This interactive scatter plot visualizes the Iris dataset, comparing sepal length against petal width. Each flower species is represented by a distinct D3 symbol, generated using `scaleOrdinal` and the `symbol` API, with axes rendered via `axisLeft` and `axisBottom`. The reusable chart pattern, defined in `scatterPlot.js`, is invoked with D3’s selection `.call()` method, and the SVG output resizes to the full window. The data is loaded asynchronously from a CSV URL using `d3.csv` and parsed into numeric fields before plotting.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.