Scatterplot multiple series
This scatterplot visualizes the relationship between sepal width and sepal length for three iris species, with each species distinguished by color. The SVG chart loads a TSV file and uses d3.tsv for parsing, d3.scale.linear for positioning, and d3.scale.ordinal (via d3.scale.category10) for color encoding. d3.extent computes the axis domains, while d3.svg.axis renders the labeled axes. A legend identifies the species categories.
AI-generated descriptionThis scatterplot is constructed from a TSV file storing the dimensions of sepals and petals of various iris flowers. The chart employs conventional margins and a number of D3 features:
- d3.tsv - load and parse data
- d3.scale.linear - x- and y-position encoding
- d3.scale.ordinal - color encoding
- d3.extent - compute domains
- d3.svg.axis - display axes
forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/3887118'>SAA datastory 1.0</a>