Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Scatter Plot with Shape

Public visualization

Fork of Scatter Plot with Shape

0 stars0🌍 Public
VVishnu Sudireddy
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from D3 Starter

This example shows an interactive scatter plot of the Iris dataset, displaying sepal length against petal length with species encoded by marker shape. It uses D3 v7’s `scaleLinear` for axes and `scaleOrdinal` with `symbolsFill` to map species to distinct shapes. A custom-shape legend, built with `d3.symbol`, lists each species. Data is loaded asynchronously via `fetch` and parsed with `csvParse`, then rendered as SVG paths using `d3.symbol` generators.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed