Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Reusable D3 Scatter Plot

Public visualization

Viewing a saved revision (read-only)

66c11df80c89454eb2d86841cb8e4f17

Fork of Reusable D3 Scatter Plot

0 stars0🌍 Public
Mmanvithareddykarra
Last edited Mar 27, 2022
Created on Mar 27, 2022

This example presents a reusable scatter plot visualizing the Iris Dataset, which cycles through different flower measurements as axes every two seconds. The plot uses D3 v6’s `scaleLinear`, `axisLeft`, `axisBottom`, and `selectAll` with a data join for animated SVG circles. The code defines a custom `scatterPlot` function with configurable accessors for x and y values, margins, and radius, driven by `setInterval` to update the plot’s dimensions.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.