🌍 Public
Viewing a saved revision (read-only)
f1d553aaf61f4f1daa20c3793cbadbe5
Fork of Reusable D3 Scatter Plot
This example presents a scatter plot of the Iris dataset, rotating through four numeric attributes as the x-axis variable on a two-second interval, with the y-axis fixed to sepal length. The plot animates smoothly by repeatedly invoking a reusable `scatterPlot` function, which uses D3’s scaleLinear, extent, axisLeft, and axisBottom to render axes and circles. Data is loaded from a GitHub Gist via `d3.csv`, with parsing of numeric columns, and the visualization is drawn as SVG with a full-window canvas, featuring a custom font and no user interaction.
AI-generated description