Skip to main content
100%

creating scatter plot with iris data

✓ Published0🌍 Public
Vvaddepallinaveen
Last edited Mar 7, 2022
Created on Mar 7, 2022

This example uses D3 v6 to create an interactive scatter plot from the Iris dataset, loading CSV data via `d3.csv` and rendering SVG circles for each observation. It maps petal length and width to the x and y axes using `d3.scaleLinear`, with colors distinguishing the three iris species (setosa, versicolor, and virginica). The axes are generated with `d3.axisLeft` and `d3.axisBottom`, and axis labels identify the variables. The chart fills the browser window and includes a legend via the species colors, demonstrating a straightforward data-driven visualization workflow.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

MIT Licensed

Similar vizzes