🌍 Public
Viewing a saved revision (read-only)
c9c4bc65788145e6877e8af5feff1d8b
colored Scatter Reusable Symbols
This example visualizes the Iris Dataset, plotting petal width against sepal length for three species of iris flowers. The scatter plot uses reusable symbols, with each species (setosa, versicolor, virginica) rendered as a distinct geometric shape and colored blue, green, or red. Tooltips reveal the exact x and y coordinates. Built with D3 v6, it leverages `scaleLinear` for axes, `scaleOrdinal` to map species to `symbols`, and `symbol()` to generate reusable paths, all rendered as SVG with custom axis styling.
AI-generated descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.