Skip to main content
100%

reusable D3 Scatter Plot (dynamic)

✓ Published1🌍 Public
PPeiyang Li
Last edited Apr 21, 2023
Created on Apr 20, 2023

This interactive scatter plot visualizes the Iris dataset, dynamically cycling through four different attribute pairs every two seconds to reveal correlations between petal and sepal measurements. Built with React and D3.js, the visualization uses `scaleLinear` for axis scaling and `axisLeft`/`axisBottom` for tick marks, while SVG circles represent data points with animated transitions between views. The chart is fully reusable through a custom `scatterPlot` function that accepts configurable width, height, margin, and radius parameters, demonstrating a flexible pattern for building dynamic D3 visualizations.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes