Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
HHarishma Nallala
Last edited Jul 1, 2022
Created on Jul 1, 2022

This fork of a reusable D3 scatter plot animates through four columns of the Iris Dataset, cycling the x-axis every two seconds. The chart uses `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, and `d3.axisBottom` to map petal width, sepal width, petal length, and sepal length against sepal length. SVG circles render the data points with a fixed radius. The implementation follows the reusable chart pattern, with `scatterPlot()` exposing width, height, data, value, margin, and radius accessors. Data loads via `d3.csv` from a GitHub Gist, and the visualization updates through `selection.join()` and `setInterval`.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes