Skip to main content
100%

Fork of D3 Scatter Plot

✓ Published0🌍 Public
AAntonio Bukovac
Last edited Dec 3, 2022
Created on Dec 3, 2022
Forked from D3 Scatter Plot

This example renders a scatter plot of the Iris Dataset, displaying petal length on the x-axis against sepal length on the y-axis. The visualization uses D3 v6’s `scaleLinear` and `extent` functions to map the data to the full browser window size, with axis ticks generated by `axisLeft` and `axisBottom`. Each data point is drawn as an SVG circle with a fixed radius of five pixels. The code fetches the CSV data from a remote URL using the `csv` function, then parses the numeric fields before computing the scaled positions for the marks.

AI-generated description

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

MIT Licensed

Similar vizzes