T9 tutorial
✓ Published0🌍 Public
This interactive scatterplot visualizes the Iris dataset, showing the relationship between various flower measurements. The plot cycles through different combinations of sepal and petal dimensions, updating the x-axis every few seconds. Circles are colored by species using a custom color function, with a legend labeling each category. The reusable `scatterPlot` module, built with D3's `scaleLinear`, `axisLeft`, `axisBottom`, and `extent` functions, handles the coordinate scaling and axes. The visualization is dynamically rendered using `setInterval`, D3's `selectAll().join()`, and a translation transform, all within an SVG canvas.
AI-generated descriptionA demonstration of reusable scatter plot.
MIT Licensed