Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable D3 Scatter Plot

Public visualization

Viewing a saved revision (read-only)

3c393ef073584f658b7b04d6bf516ed8

Reusable D3 Scatter Plot

0 stars0🌍 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.