Skip to main content
100%

D3: Drawing with iris data

✓ Published0🌍 Public
MMathReynaud
Last edited Jan 21, 2018
Created on Jan 21, 2018

This example visualizes the classic Iris dataset by plotting sepal length against sepal width for three species of iris flowers. Each species is distinguished by a unique symbol shape and color: red triangles for setosa, orange crosses for virginica, and blue stars for versicolor. The visualization also overlays a least-squares regression line for each species, computed from the data, to show trends in the relationship. Built with D3 v4, the code loads the CSV data and uses `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, and `d3.symbol` to render the SVG scatterplot and its axes.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes