Skip to main content
100%

colored Scatter Reusable Symbols

✓ Published0🌍 Public
Aadventuresenglish.info@gmail.com
Last edited Dec 6, 2023
Created on Dec 6, 2023

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 description

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

MIT Licensed

Similar vizzes