Skip to main content
100%

Iris Dataset Scatter Plot

✓ Published0🌍 Public
RRahulChaitu999
Last edited Jun 26, 2022
Created on Jun 26, 2022
Forked from D3 Starter

This visualization displays the famous Iris dataset as a scatter plot, mapping petal length on the x-axis and petal width on the y-axis, with each of the three species—setosa, versicolor, and virginica—represented by black, green, and orange circles respectively. The code loads CSV data using D3’s `csv` function, parses numeric fields, and constructs linear scales with `scaleLinear` and `extent`. It renders SVG circles with attributes bound to the data, and includes axis labels via `axisLeft` and `axisBottom`. The chart is built with D3 v6 and fills the browser window.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes