Fork of D3 Scatter Plot
✓ Published0🌍 Public
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 descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.
MIT Licensed