🌍 Public
Viewing a saved revision (read-only)
733c50a53c8d4158a26df0e9ba0b576e
Scatter Plot
This example presents a scatter plot of the Iris dataset, using petal length and width for the x- and y-positions, with three species color-coded as green, yellow, and red circles. The code loads CSV data with d3.csv, uses d3.scaleLinear and d3.extent to set scales, and renders axes with d3.axisLeft and d3.axisBottom. The SVG circles also carry sepal length and width values, though these are not mapped to visual channels. Rendering is done entirely in a static SVG.
AI-generated descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.