Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Reusable D3 Scatter Plot with Symbols 2

Public visualization

Fork of Reusable D3 Scatter Plot with Symbols 2

0 stars0🌍 Public
DDaveCumin
Last edited Apr 24, 2023
Created on Apr 24, 2023

This example displays the Iris dataset as a scatter plot, encoding petal width on the x-axis, sepal length on the y-axis, and species as distinct shapes using D3’s `symbol` API. It uses `scaleLinear` for axes, `scaleOrdinal` to map species to symbol types, and `axisBottom`/`axisLeft` for ticks. The plot is rendered as an SVG, sized to the full window, and loads data from a CSV URL via `d3.csv`. The reusable `scatterPlot` function configures margins, symbol size, and value accessors.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed