Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 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.

MIT Licensed

Similar vizzes