Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
SSurikanti Swathi
Last edited Mar 30, 2023
Created on Mar 27, 2023

This animated scatter plot cycles through different x-axis variables from the Iris dataset, allowing viewers to compare petal width, sepal width, petal length, and sepal length against a fixed y-axis of sepal length. Data points are color-coded by species (setosa, versicolor, virginica) with a custom legend. The visualization uses D3 v6 APIs including `csv` for data loading, `scaleLinear`, `axisLeft`, `axisBottom`, and `selectAll().join()` for SVG circle rendering. A `setInterval` timer updates the x-value accessor, and `scatterPlot` encapsulates the reusable chart logic.

AI-generated description

Scatter plot for Iris dataset

MIT Licensed

Similar vizzes