Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Scatter Plot with Shape

Public visualization

Fork of Fork of Scatter Plot with Shape

0 stars0🌍 Public
Pperamranji
Last edited Mar 30, 2025
Created on Mar 30, 2025

This example displays Fisher’s iris dataset as a scatter plot of sepal versus petal length, encoding species with different filled shapes. It builds on D3 v7 APIs—d3.scaleOrdinal, d3.symbolsFill, d3.symbol, and axis functions—to generate custom SVG paths for each mark and a dedicated shape legend. A reusable axes module applies left and bottom scales with labeled axes. Data is loaded as CSV from a GitHub repository and parsed with d3.csvParse before being converted to numeric values.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed