D3 Scatterplot I - scaleLinear, domain, range
✓ Published1🌍 Public
This scatterplot displays the relationship between petal length and sepal length for the Iris flower dataset, with each point representing one sample. The visualization maps the data values to pixel coordinates using D3 v3's `d3.scaleLinear` and explores the concepts of `domain` (the data range) and `range` (the pixel space). It fetches CSV data from a gist URL, parses the numeric fields, and renders the points as SVG circles using a dataset join. The dataset is the classic Iris dataset, and the code logs the scales and computed mark positions to the console for inspection.
AI-generated descriptionLearning about
- scaleLinear (and some other scale types)
- domain
- range
MIT Licensed