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)

fdebf55819d14dc58c95c574678cea8d

Fork of Reusable D3 Scatter Plot with Symbols

0 stars0🌍 Public
IIsabel Cayer
Last edited Jul 24, 2025
Created on Jul 24, 2025

This example presents a scatter plot of the Iris dataset, showing petal width against sepal length, with distinct d3 symbol shapes (circles, crosses, diamonds, etc.) encoding the different Iris species. It is built using a reusable `scatterPlot` function in D3 v6, which leverages `scaleLinear` for axes, `scaleOrdinal` to map species to symbols, and a `symbolGenerator` to render SVG paths. The plot reads the dataset from a remote CSV via `d3.csv`, displays axes using `axisLeft` and `axisBottom`, and supports configurable margins and symbol size through its fluent API.

AI-generated description