Skip to main content
100%

Dynamic D3 Scatter plot

✓ Published1🌍 Public
WWasanta Pruttisarikorn
Last edited Dec 22, 2022
Created on Dec 22, 2022

This dynamic scatter plot visualizes the Iris dataset, cycling through four different measurements on the x-axis every two seconds while keeping sepal length on the y-axis. Built with React and D3 v7, it uses SVG rendering with scaleLinear for axes, extent for domains, and selection joins to update circles smoothly. The example demonstrates reusable chart components through a scatterPlot factory function, updating axis and circle positions as the x-value accessor changes via setInterval.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes