Skip to main content
100%

Fork of Reusable Scatter plot Activity 8

✓ Published0🌍 Public
VVishnu Mallampalli
Last edited Jul 12, 2024
Created on Jul 12, 2024

This fork of a D3.js scatter plot demonstrates the iris dataset’s four measured features (petal and sepal length/width) with the x-axis cycling through each variable on a timer while the y-axis stays fixed on sepal length. Colored circles distinguish iris species, and the plot includes a static legend. The code uses D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs within a custom `scatterPlot` generator, animating via `setInterval` and rendering to SVG. The data is loaded from a CSV file using D3’s `csv` function.

AI-generated description

A demonstration of reusable scatter plot.

MIT Licensed

Similar vizzes