Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
0057SatvikDamera
Last edited Mar 10, 2023
Created on Mar 10, 2023

This example shows the Iris Dataset in an animated scatter plot that cycles through different feature pairs every two seconds. It uses a reusable D3 scatter plot component, built with `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, and `d3.axisBottom` from D3 v6. The plot is rendered as an SVG that fills the browser window, with circles sized by a fixed radius. The animation is driven by `setInterval`, which updates the x-value mapping and re-applies the plot to the SVG element.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes