Skip to main content
100%

Reusable Scatter Plot

✓ Published0🌍 Public
Nnikhilagopi
Last edited Mar 29, 2023
Created on Mar 27, 2023

A reusable scatter plot displays the Iris dataset, cycling through different x-axis attributes every two seconds to reveal patterns across petal and sepal measurements. Circles are colored by species (setosa, versicolor, virginica) and sized according to sepal dimensions. Built with d3.js v6, it demonstrates a modular `scatterPlot` function using `scaleLinear`, `axisLeft`, `axisBottom`, and SVG circle elements, with data fetched from a GitHub Gist. The animation uses `setInterval` to update the plot, while axes and marks redraw dynamically.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes