Basic Scatter Plot
✓ Published0🌍 Public
CCurran Kelleher
Last edited Mar 1, 2018
Created on Feb 24, 2018
This example uses a scatter plot to show the relationship between sepal length and petal length for three iris species, with each species (setosa, versicolor, virginica) represented by a distinct color in the d3.schemeCategory10 palette. The plot, rendered as SVG, loads data from iris.csv and maps the numerical measurements to positions on linear scales via d3.scaleLinear, while a d3.legendColor legend identifies the color groupings. Axis ticks and labels are generated using d3.axisBottom and d3.axisLeft, with styling applied through CSS classes.
AI-generated descriptionmit Licensed