Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Iris Dataset Scatter Plot

Public visualization

Viewing a saved revision (read-only)

60164d32266e4433b33e431914c78291

Fork of Iris Dataset Scatter Plot

0 stars0🌍 Public
Ggopiganta
Last edited Mar 5, 2022
Created on Mar 5, 2022

This example visualizes the Iris Dataset as a scatter plot, mapping petal length and width to the x and y axes while coloring each point according to species. A second set of attributes, sepal length and width, is encoded as custom `rx` and `ry` properties on the SVG circles, though these do not affect the visual rendering since the `r` attribute is fixed. The code uses D3 v6 APIs including `csv`, `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to fetch data, scale axes, and render SVG marks.

AI-generated description

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