Fork of Fork of Reusable D3 Scatter Plot
This example presents a reusable D3 scatter plot that visualizes the Iris dataset, dynamically cycling through different x-axis dimensions every two seconds. The code imports specific D3 v6 modules including `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to construct the plot, along with `csv` and `select` for data loading and DOM manipulation. The visualization renders as a full-window SVG with animated transitions between petal width, sepal width, petal length, and sepal length axes, using a `setInterval` callback. Data is fetched from a GitHub Gist, and circles are joined and updated using the `.join()` pattern.