Teacher pay
This scatterplot shows the relationship between state-level teacher salary changes from 2000 to 2016 (horizontal axis) and 2016 average salaries (vertical axis), with each point labeled by state name. The code loads data from a TSV file using d3.tsv, applies linear scales for both axes, and uses an ordinal color scale for categories. Axes are rendered with d3.svg.axis, while circles are drawn as SVG elements with text labels overlaid.
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/andrewwitherspoon/'>andrewwitherspoon</a>'s block: <a href='http://bl.ocks.org/andrewwitherspoon/9b2d5684aad0cd5c5e9d731a4865e0f3'>Scatterplot</a>