Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Reusable D3 Scatter Plot with Symbols

Public visualization

Viewing a saved revision (read-only)

64919264b3654137baf976045c07f46f

Fork of Reusable D3 Scatter Plot with Symbols

0 stars0🌍 Public
AAlena
Last edited Nov 12, 2023
Created on Nov 12, 2023

This scatter plot visualizes the Iris Dataset, mapping sepal length against petal width with D3 v6. The code uses `d3.csv` to load data and `d3.scaleLinear`, `d3.axisLeft`, and `d3.axisBottom` for scales and axes. A `d3.scaleOrdinal` and `d3.symbol` generator draw points as SVG paths, with symbol types based on species. The `scatterPlot()` function is reusable, configured via chained methods for dimensions, margins, and accessors.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.