Skip to main content
100%

Charan - Scatter Plot using Iris dataset

✓ Published1🌍 Public
Ccharanchand9
Last edited Jun 26, 2022
Created on Jun 26, 2022

This interactive scatter plot visualizes the Iris dataset, mapping petal length on the x-axis and petal width on the y-axis, while coloring each point by iris species (setosa, versicolor, or virginica) with distinct colors (aqua, pink, and red). The visualization is rendered as an SVG using D3 v6, with axes labeled “Petal-length” and “Sepal-length.” It loads data via `d3.csv`, scales the coordinates with `scaleLinear` and `extent`, and draws the points with SVG `circle` elements, incorporating the raw sepal dimensions as unused `rx` and `ry` attributes. The chart fills the browser window, using margins for axis labels.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes