Scatterplot Example

A simple example to map an array of numbers to a set of points.

Adapted from the example in AlignedLeft.com

Outline

  1. Create SVG container
  2. Join data with circle elements
  3. Adjust layout and positions
  4. Colors and Labels
  5. Improve code and graphics with g

Visualization

Dataset