Skip to main content
100%

Fork of Reusable Scatter plot Activity 8

✓ Published0🌍 Public
AAamir Hameed mir
Last edited Jun 5, 2024
Created on Jun 5, 2024

This animated scatter plot explores the Iris dataset, cycling through different feature pairings on the x-axis while keeping sepal length on the y-axis. Colored circles represent three species of iris flowers. The visualization is built using D3's `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs within a reusable `scatterPlot` function. A `setInterval` loop updates the plot's x-value mapping, redrawing axes and text labels accordingly. The code also includes custom legend labels, a title, and styling applied through SVG attributes.

AI-generated description

A demonstration of reusable scatter plot.

MIT Licensed

Similar vizzes