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)

e56f5be5ac0f4cf6a2b01bc3beaaa4dd

Fork of Reusable D3 Scatter Plot

0 stars0🌍 Public
Vvamshisoletii
Last edited Mar 10, 2023
Created on Mar 10, 2023

This example displays the classic Iris dataset in a scatter plot, cycling through the four measured attributes on the x-axis every two seconds to reveal different correlations with sepal length on the y-axis. Each point is rendered as an SVG circle, and the axes rescale dynamically as the data mapping changes. Built as a reusable D3 chart, it employs `select`, `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` from the D3 library. The animation is driven by a `setInterval` callback that updates the chart’s configuration and re-invokes the plotting function.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.