Skip to main content
100%

Reusable D3 Scatter Plot w/ symbols

✓ Published0🌍 Public
MMichael Bergerson
Last edited Jun 18, 2021
Created on Jun 18, 2021

This reusable D3 scatter plot visualizes the Iris Dataset, mapping petal length against sepal length with each species represented by a distinct symbol from `d3.symbols`. The chart uses `d3.scaleLinear` for the x and y axes, `d3.scaleOrdinal` to assign symbols based on the species, and includes axis labels via SVG text elements. The code is structured as a configurable function that accepts width, height, data, margins, and label properties, with the dataset loaded asynchronously from a CSV using `d3.csv`. All rendered output is SVG.

AI-generated description

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

MIT Licensed

Similar vizzes