Fork of Reusable D3 Scatter Plot
This example presents an interactive scatter plot of the Iris dataset, cycling through different feature pairings on the x-axis every two seconds. Built with D3 v6, it uses `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to map data to SVG circles. The chart is reusable via a custom `scatterPlot` function that exposes setters for width, height, data, margins, and accessor functions, allowing the x-axis to dynamically switch between petal width, sepal width, petal length, and sepal length while the y-axis remains fixed on sepal length.