Fork of Fork of Reusable D3 Scatter Plot
✓ Published0🌍 Public
This example visualizes the Iris dataset as an animated scatter plot, cycling through four flower measurements as the x-axis every two seconds. Built with D3 v6, it demonstrates a reusable chart pattern where a `scatterPlot` function encapsulates scales, axes, and circle rendering via `selection.join`. The chart updates smoothly by calling `svg.call(plot)` with new x-value accessors, while D3's `scaleLinear` and `axisLeft`/`axisBottom` handle positioning and ticks. The full-screen SVG renders 150 data points with a fixed radius, using data loaded from a CSV and displayed with a tech-themed font.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed