Basic Scatter Plot
This example visualizes the classic Iris dataset, plotting sepal length against petal length for 150 flower specimens. Built with D3 v4, it loads data from a CSV file and uses linear scales with the margin convention to position circles in an SVG. The axis constraints are omitted, but the scatter plot effectively reveals the clustering of the three iris species based on their measured botanical dimensions.
AI-generated descriptionPart of the video course: D3.js in Motion.
An example of the D3 margin convention pattern.
This shows the "Iris" dataset. Originally published at UCI Machine Learning Repository: Iris Data Set, this small dataset from 1936 is often used for testing out machine learning algorithms and visualizations. Each row of the table represents an iris flower, including its species and dimensions of its botanical parts, sepal and petal, in centimeters.