Skip to main content
100%

Fork of Reusable D3 Scatter Plot

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

MIT Licensed

Similar vizzes