Dynamic D3 scatterplot
✓ Published1🌍 Public
This dynamic scatterplot animates through different variable combinations from the Iris dataset, cycling every two seconds between four attribute pairings. Each transition re-maps the x-axis to a new column while keeping sepal length on the y-axis, with the circles smoothly repositioning to reflect the changing correlations. Built with D3 v7, the visualization uses the `scaleLinear`, `extent`, and `axisLeft`/`axisBottom` functions from the `d3` import, along with a custom scatterPlot module that handles the SVG rendering via the `.join()` pattern for efficient updates. The animation is driven by `setInterval` in the main script, which alternates the x value function and re-invokes the plot.
AI-generated descriptionExample Dynamic scatterplot
MIT Licensed