Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

creating scatter plot with iris data

Public visualization

Viewing a saved revision (read-only)

48eb12b3d7634ff8b0c2a6b911f0658b

creating scatter plot with iris data

0 stars0🌍 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.