Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable D3 Scatter Plot with Symbols

Public visualization

Viewing a saved revision (read-only)

4e1714d11dba4d1684540c4748478df8

Reusable D3 Scatter Plot with Symbols

0 stars0🌍 Public
Wwspwll@gmail.com
Last edited Jul 18, 2024
Created on Jul 18, 2024

This reusable D3 scatter plot visualizes the Iris dataset by mapping petal length and sepal length along the x and y axes, with species encoded through distinct symbols. Built with D3 v7, it uses `scaleLinear` for axes, `scaleOrdinal` with `symbols` and `symbol` to render marks as SVG paths, and `axisLeft`/`axisBottom` for the chart framework. The `scatterPlot` function is configurable via chained setters for width, height, data, and margins, ingesting CSV data through `csv` and rendering in an SVG container.

AI-generated description