Skip to main content
100%

Fork of Reusable D3 Scatter Plot with Symbols

✓ Published0🌍 Public
Yyisha huang
Last edited Jun 28, 2024
Created on Jun 27, 2024

This visualization displays the Iris dataset as a scatter plot, showing the relationship between petal width and sepal length across three iris species. Each species is distinguished by a unique symbol shape, such as circles or triangles, generated using D3’s `symbol` and `scaleOrdinal`. The code uses D3 v7 functions like `csv`, `scaleLinear`, `axisLeft`, and `axisBottom` to load data, map positions, and render SVG axes. The chart is built as a reusable function, with margins and symbol size adjustable through its configuration API.

AI-generated description

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

see the latest version: unpkg.com/d3

MIT Licensed

Similar vizzes