Skip to main content
100%

Fork of CV: Scatter Plot

✓ Published0🌍 Public
AAaron
Last edited Dec 4, 2025
Created on Dec 4, 2025
Forked from CV: Scatter Plot

This example displays the classic Iris dataset as an interactive scatter plot, plotting sepal length against sepal width for 150 flowers. Each circle represents a sample, colored and stroked in red when clicked to highlight a specific data point. Built with React, the visualization uses D3 v7 APIs such as `scaleLinear` for axes and `axisBottom`/`axisLeft` for ticks, with the SVG rendered declaratively. Circle transitions use CSS for smooth hover effects, while a custom `ResizeObserver` hook ensures the plot adapts to its container’s dimensions.

AI-generated description
MIT Licensed

Similar vizzes