Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot with Shape

Public visualization

Viewing a saved revision (read-only)

198ae0db8e214b848b96454c7a38e58e

Scatter Plot with Shape

0 stars7🌍 Public
CCurran Kelleher
Last edited Mar 2, 2023
Created on Mar 2, 2023

This example visualizes the Iris Dataset as a scatter plot, mapping sepal length to the x-axis and petal length to the y-axis, with each of the three iris species distinguished by a distinct symbol shape. A legend encoded with the same shapes identifies the species. The visualization uses D3 v7’s `scaleLinear`, `scaleOrdinal`, and `symbol` to position and shape the data points, alongside `axisLeft` and `axisBottom` for the axes. Data is loaded from a CSV file and parsed with `csvParse`, with symbols rendered using `symbolGenerator.type().size()`.

AI-generated description

A scatter plot of the Iris Dataset with a color legend.

See also: