D3V4 Scatterplot
A D3V4 scatterplot visualizes iris flower dimensions, plotting sepal width on the x-axis and sepal length on the y-axis, with each point colored by species and a legend. The chart uses a TSV data file, parsed with `d3.tsv`, and encodes positions via `d3.scaleLinear`, color via `d3.scaleOrdinal`, and axes via `d3.axisBottom` and `d3.axisLeft`. The SVG rendering employs circles for data points and standard margins, adhering to D3 conventions.
AI-generated description** Copied from https://bl.ocks.org/mbostock/3887118 Then updated to D3 V4 **
This 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/sebg/'>sebg</a>'s block: <a href='http://bl.ocks.org/sebg/6f7f1dd55e0c52ce5ee0dac2b2769f4b'>D3V4 Scatterplot</a>