Reusable D3 Scatter Plot
This interactive scatter plot cycles through four measurements from the Iris Dataset—petal width, sepal width, petal length, and sepal length—every two seconds. Using D3 v6, it employs scaleLinear for axes, axisLeft and axisBottom for ticks, and updates circle positions via selectAll().data().join(). The reusable chart function from scatterPlot.js accepts configurable accessors, while index.js reads CSV data via d3.csv and triggers re-renders with setInterval, all rendered as SVG with smooth transitions between dimensions.