Animated Reusable D3 Scatter Plot
This example demonstrates a reusable D3 scatter plot that animates through different Iris dataset columns every 2.5 seconds, shifting the x-axis mapping between petal width, sepal width, petal length, and sepal length. It uses D3 version 7 with scaleLinear for axes, axisLeft and axisBottom for rendering ticks, and transition for smooth 1-second animations. Built as a React-compatible module with a configurable scatterPlot function, it loads CSV data via d3.csv, applies SVG rendering, and staggers circle updates with a per-point delay for a cascading effect.