Skip to main content
100%

ice 6 scatter

✓ Published0🌍 Public
TTejamod
Last edited Jun 25, 2022
Created on Jun 25, 2022

This example visualizes the Iris Dataset as a scatter plot, mapping petal length on the x-axis and petal width on the y-axis, with each point colored by species (gold for setosa, purple for virginica, skyblue for versicolor). The SVG rendering uses D3 v6’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to set scales and axes, while circles are positioned with `cx` and `cy` attributes. The code assigns non-standard `rx` and `ry` attributes to each circle based on sepal dimensions, though these do not affect the circle’s display radius. Data loads via `d3.csv` from a remote CSV, with axis labels styled in large fonts.

AI-generated description

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

MIT Licensed

Similar vizzes