Skip to main content
100%

Reusable D3 Scatter Plot

✓ Published0🌍 Public
RRamya19-hub
Last edited Mar 29, 2023
Created on Mar 29, 2023

A reusable scatter plot displays the Iris Dataset, coloring each point by species (setosa, versicolor, virginica) and animating through different feature-pair combinations every six seconds. Built with D3 v6, it uses `scaleLinear`, `axisLeft`, `axisBottom`, and data joins to render SVG circles, while the chart factory pattern (`scatterPlot()`) exposes setters for width, height, margins, and accessors. The animation cycles x-axis values across petal width, sepal width, petal length, and sepal length, updating axes and marks accordingly.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes