Reusable D3 Scatter Plot
✓ Published2🌍 Public
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 descriptionMIT Licensed