Scatterplot
This scatterplot visualizes the classic Iris flower dataset, plotting sepal length against sepal width for 150 samples. Each point is colored by species using an ordinal color scale, with linear scales mapping measurements to x- and y-positions and axes rendered via SVG. The chart loads and parses the data from a TSV file using d3.tsv, computes the domains with d3.extent, and displays axes with d3.svg.axis. The visualization follows conventional margin conventions and uses D3 v3, clearly showing how the three iris species cluster differently across sepal dimensions.
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>
forked from <a href='http://bl.ocks.org/john-guerra/'>john-guerra</a>'s block: <a href='http://bl.ocks.org/john-guerra/221cb4c7fb676bcb58a25d4982114de3'>Scatterplot</a>