Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
Nneeharika2023@gmail.com
Last edited Mar 27, 2024
Created on Mar 27, 2024

This interactive scatter plot visualizes the Iris dataset, cycling through four measured attributes—tail length, beak length, beak width, and wingspan—on the x-axis every two seconds while wingspan remains on the y-axis. Built with D3.js, it uses `d3.scaleLinear` and `d3.extent` for scales, and `d3.axisLeft`/`d3.axisBottom` for axes. The reusable chart pattern, defined in `scatterPlot.js`, updates smoothly via a `setInterval` loop that re-calls the chart function, rendering SVG circles and animated transitions.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes