Scatterplot multiple series v2
This scatterplot visualizes the relationship between sepal width and sepal length for three iris species, with each species assigned a distinct color from a categorical scale and displayed as a small dot. The chart uses D3 v3 to load a TSV file with `d3.tsv`, compute the x- and y-axis domains with `d3.extent`, and encode position with `d3.scale.linear`. Color encoding leverages `d3.scale.ordinal` (via `d3.scale.category10()`), while axes are rendered using `d3.svg.axis`. A legend identifies each species, and the SVG rendering follows conventional margin-based layout.
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'>Scatterplot</a>