Fork of Data Visualization- Scatter Plot with Iris DataSet
✓ Published0🌍 Public
JJacky
Last edited Sep 13, 2024
Created on Sep 13, 2024
This scatter plot visualizes the Iris dataset, mapping petal length and width for individual flowers and coloring points by species (setosa, versicolor, and virginica). The D3 v6 code loads CSV data via `d3.csv`, scales positions with `d3.scaleLinear`, and renders circles as SVG elements with `d3.selectAll` and `.join()`. Axes are generated using `d3.axisLeft` and `d3.axisBottom`, while a custom switch statement assigns colors. The visualization also calculates redundant sepal measurements but does not display them, instead labeling the horizontal axis as petal length.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed