Creating a Scatter Plot with D3.js
✓ Published0🌍 Public
This example visualizes the Iris flower dataset as a scatter plot, mapping petal length and width to the x- and y-axes and coloring each point by species (setosa, versicolor, and virginica). It uses D3.js v6 with SVG rendering, loading data via `d3.csv`, scaling with `d3.scaleLinear`, and adding axes with `d3.axisLeft` and `d3.axisBottom`. The code also includes custom axis labels for sepal length and petal length.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed