Fork of Fork of Fork of Reusable D3 Scatter Plot
✓ Published0🌍 Public
This example shows an interactive-free scatter plot of the Iris dataset, mapping petal length on the x-axis and sepal length on the y-axis, with points colored by species using a d3.scaleOrdinal. It loads CSV data via d3.csv, then builds a reusable visualization through a custom scatterPlot function that appends an SVG, applies linear scales (d3.scaleLinear), and draws axes with d3.axisBottom and d3.axisLeft. The plot includes labeled axes and three color categories for the flower species.
AI-generated descriptionMIT Licensed