Skip to main content
100%

Fork of Iris Dataset Scatter Plot

✓ Published0🌍 Public
Kkalyanikotha
Last edited Mar 6, 2022
Created on Mar 6, 2022

This scatter plot visualizes the Iris Dataset, mapping sepal and petal measurements from the CSV to colored circular marks. It uses D3 v6’s `scaleLinear` for axes, `extent` for domains, and `axisLeft`/`axisBottom` for tick rendering. The code destructures D3 methods like `csv`, `select`, and `join` to load data and append SVG circles. Species are color-coded (maroon, green, purple) via a switch statement, with point size fixed at a 10-pixel radius. The visualization is rendered dynamically to fill the browser window, using an SVG container.

AI-generated description

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

MIT Licensed

Similar vizzes