Skip to main content
100%

The Iris Dataset

✓ Published0🌍 Public
IIoTeacher
Last edited Dec 7, 2015
Created on Jun 22, 2017

This example presents a minimal D3.js visualization that loads the classic Iris flower dataset from a CSV file (iris.csv) and displays its contents as raw, formatted JSON text on the page. Using the `d3.csv` method with a type conversion function, the code converts the numeric measurement columns to numbers before rendering the complete dataset structure with `JSON.stringify`. The simple output is intended as a starting point for testing data-loading workflows, showcasing 150 rows of sepal and petal measurements across three iris species from the UCI Machine Learning Repository.

AI-generated description

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) using D3.js.

Built with blockbuilder.org

<!-- Start of SimpleHitCounter Code --> <div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=1980294&f=16777215&b=0" border="0" height="18" width="83" alt="web counter"></a></div> <!-- End of SimpleHitCounter Code -->

Similar vizzes