Skip to main content
100%

Fork of Iris Dataset Scatter Plot

✓ Published0🌍 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.

MIT Licensed

Similar vizzes