Fork of Reusable D3 Scatter Plot
✓ Published0🌍 Public
This example displays the Iris Dataset as an interactive scatter plot, cycling through four flower measurements every two seconds while maintaining a fixed y-axis of sepal length. Reusable chart logic sits inside the `scatterPlot` function, which uses d3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to map data to SVG circles and axes. The animation is driven by `setInterval` updating the x-value accessor and re-invoking the chart, all rendered in an SVG with Google’s Share Tech font.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed