Skip to main content
100%

Scatter Plot

✓ Published3🌍 Public
AAnupJoseph
Last edited Jul 1, 2021
Created on Jun 29, 2021
Forked from Hello Package.json

A scatter plot displays Fisher's Iris dataset, mapping sepal length and width as x and y coordinates while encoding petal width through circle radius and species through color. The visualization uses the D3 v6 API with d3.scaleLinear for positional and radial scales, d3.scaleOrdinal for categorical coloring, and d3.axisLeft/axisBottom for axes. Circles animate to their target radii over two seconds via selection.transition(). The reusable chart pattern is implemented through a scatterPlot factory function with configurable accessors and margin, rendering to SVG with data loaded from a CSV URL.

AI-generated description

A scatterplot with Towards Reusable Charts patterns

MIT Licensed

Similar vizzes