Skip to main content
100%

Basic Scatter Plot

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

This scatter plot visualizes the Iris dataset, plotting sepal length against petal length for 150 iris flowers. The code uses D3 v4 to create an SVG visualization, employing `d3.scaleLinear` for both axes and `d3.axisBottom` and `d3.axisLeft` to render the axes. The data is loaded from a CSV file using `d3.csv`. Each flower is represented as a circle, with its position determined by the scaled values of the two measured dimensions.

AI-generated description

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

An example of creating a scatter plot with basic axes 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