Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published1🌍 Public
MMeghanaArepalli
Last edited Mar 23, 2022
Created on Mar 23, 2022

This example demonstrates a reusable scatter plot that cycles through different dimensions of the Iris dataset every two seconds, animating the points as the x-axis mapping changes between columns such as petal width and sepal length. The visualization uses D3 v6 APIs including `scaleLinear`, `extent`, `axisLeft`, `axisBottom`, and data joins to render SVG circles with axes. It loads CSV data via `d3.csv`, parses numeric fields, and applies a custom margin and fixed radius per point. The animation is driven by `setInterval`, updating the x-value accessor and re-invoking the chart function.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes