Scatterplot
This scatterplot visualizes the relationship between Twitter and Facebook engagement scores for 24 news organizations, with each point labeled by company name. The chart uses D3 v3 with SVG rendering, employing `d3.tsv` to parse the data file and `d3.scale.linear` for x- and y-position encoding. `d3.scale.ordinal` assigns categorical colors, while `d3.extent` computes the axis domains and `d3.svg.axis` displays the axes. The code applies conventional margins and overlays text labels near each dot, though the color mapping relies on a `correlation` field not present in the provided data.
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>