Skip to main content
100%

Task_9_Tutorial_1

✓ Published0🌍 Public
LLakshmi Keerthi
Last edited Apr 21, 2024
Created on Apr 21, 2024
Forked from Hello VizHub

This animated scatter plot visualizes the Iris dataset, cycling through four different feature combinations on the x-axis (petal width, sepal width, petal length, sepal length) while keeping sepal length on the y-axis. The three species are distinguished by color (skyblue, lightgreen, orange) and a legend. Built with D3.js (v6), the visualization uses an ES6 module pattern for a reusable `scatterPlot` function that employs `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs. The animation uses `setInterval` to update the x-axis and redraw the plot, with SVG rendering and text labels for axes and title.

AI-generated description

Demonstration of reusable scatter plot.

MIT Licensed

Similar vizzes