Skip to main content
100%

Reusable D3 Scatter Plot

✓ Published2🌍 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
MIT Licensed

Similar vizzes