Export Code

The Iris Dataset

Curran Kelleher

Last edited Feb 16, 2024
Created on Feb 16, 2024

This is 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 (for example, Scatter Plot). Each row of the table represents an iris flower, including its species and dimensions of its botanical parts, sepal and petal, in centimeters.

The HTML page provides the basic code required to load the data and display it on the page (as JSON).

See also https://gist.github.com/curran/a08a1080b88344b0c8a7

You can import this dataset in your viz like this:

import { data } from '@curran/iris-dataset';

As an example of that kind of import, see Interactive Color Legend.

MIT Licensed