🌍 Public
Viewing a saved revision (read-only)
b5a0ae1116fe422b8bb7099787daa4e8
Reusable D3 Scatter Plot- ICE7
This example presents a scatter plot of the Iris dataset, cycling through different floral measurements on the x-axis while coloring points by species. It renders as an animated SVG, updating the axis and labels every few seconds. The visualization uses D3 v6 with a custom reusable `scatterPlot` function that leverages `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to create axes. Data is loaded via D3’s `csv` parser, and points are drawn with circle elements, with colors and axis titles updated dynamically through a `setInterval` loop.
AI-generated description