Skip to main content
100%

Scatter Plot for Iris dataset

✓ Published0🌍 Public
Cchandrakalavanukuri
Last edited Mar 8, 2022
Created on Mar 8, 2022

This scatter plot visualizes the Iris dataset, mapping petal length on the x-axis against sepal length on the y-axis for each flower sample. The code loads the data via `d3.csv`, parses numeric values, and uses `d3.scaleLinear` with `d3.extent` to set the scales. Circles are drawn using SVG elements, with axes generated by `d3.axisLeft` and `d3.axisBottom`. Axis labels are added manually as SVG text elements. The plot renders full-screen, with a margin-based layout and a fixed point radius of 5 pixels.

AI-generated description

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

MIT Licensed

Similar vizzes