🌍 Public
Viewing a saved revision (read-only)
f0f8ad2e731b4c28b71d8f16e412d354
Fork of Iris Dataset Scatter Plot
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 descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.