Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable D3 Scatter Plot

Public visualization

Viewing a saved revision (read-only)

dc038de9bf9d4b0bb281045680294d43

Reusable D3 Scatter Plot

0 stars2🌍 Public
Wwspwll@gmail.com
Last edited Jul 22, 2024
Created on Jul 18, 2024
Forked from D3 Scatter Plot

This reusable scatter plot displays iris flower measurements, mapping petal length to the x-axis and sepal length to the y-axis. Built with D3 v7, it uses `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to render axes and circles in SVG. The code loads data from a CSV via `csv()` and parses numeric fields, with an animation option that cycles through variables using `setInterval`. The scatterPlot function applies a fluid, reusable API pattern for customization.

AI-generated description