Skip to main content
100%

Reusable Scatter Plot

✓ Published1🌍 Public
AAkhila-Battula
Last edited Mar 27, 2022
Created on Mar 23, 2022

This reusable scatter plot displays the Iris dataset, mapping petal and sepal measurements against each other while coloring each point by species. Constructed with D3 6.7.0's `scaleLinear`, `axisLeft`, and `axisBottom` APIs, the visualization animates by cycling the x-axis through different measurement columns every two seconds using `setInterval`. Circles are rendered as SVG elements with per-species colors (green, indigo, red), and the plot is fully parameterized via a custom `scatterPlot` function for flexible reuse.

AI-generated description

Implementation of a Reusable D3 scatter plot. Shows the Iris Dataset.

MIT Licensed

Similar vizzes