Skip to main content
100%

Basic Scatter Plot

✓ Published0🌍 Public
CCurran Kelleher
Last edited Sep 15, 2017
Created on Aug 6, 2017

This example shows a basic scatter plot of the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis for 150 flowers. Using D3 v4, it loads the data from a CSV file with `d3.csv`, applies linear scales via `d3.scaleLinear`, and renders each flower as a circle element in an SVG container. The plot does not encode species or other dimensions, and includes no axes or labels.

AI-generated description

Part of the video course: D3.js in Motion.

An example of a basic scatter plot using D3.

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.

mit Licensed

Similar vizzes