Skip to main content
100%

Reusable_D3_Scatter_Plot.

✓ Published0🌍 Public
DDineshK2602
Last edited Mar 28, 2023
Created on Mar 28, 2023
Forked from HTML Starter

This example presents the classic Iris dataset as an interactive scatter plot, cycling through different attribute pairings on the x-axis (petal width, sepal width, petal length, and sepal length) at regular intervals, while the y-axis remains fixed on sepal length. The visualization uses D3 v6 with a custom reusable `scatterPlot` component built around `scaleLinear`, `axisLeft`, and `axisBottom`, rendering SVG circles with animated transitions via `setInterval`. Data is loaded asynchronously from a GitHub-hosted CSV file using `d3.csv`, with points colored green, blue, or red to distinguish the three iris species; a legend and axis labels accompany the animated plot.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes