Tutorial 2 D3
✓ Published0🌍 Public
JJboulery
Last edited Jan 23, 2018
Created on Jan 23, 2018
This scatterplot maps the classic Iris flower dataset, plotting petal length against petal width for 150 samples. It uses the D3.js v4 library, rendering as an SVG with axis ticks and labels. The code employs `d3.scaleLinear` for both axes, `d3.axisBottom` and `d3.axisLeft` for the chart frame, and `d3.symbol` with `d3.symbolCircle`, `d3.symbolCross`, and `d3.symbolDiamond` to distinguish the three species—setosa, versicolor, and virginica—by both shape and color. Data is loaded from a local `iris.csv` file.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed