Skip to main content
100%

Marey’s Trains

✓ Published0🌍 Public
Mmbostock
Last edited Mar 5, 2019
Created on May 8, 2013

This visualization recreates Marey’s classic train schedule as a stringline chart, showing train trajectories as sloped lines across a station-by-distance vertical axis and a time-based horizontal axis. The slope of each line encodes train speed, with orange limited-service trains and red baby bullets overlaid on black regular trains. The code uses D3 v3 with `d3.svg.line`, `d3.time.scale`, and `d3.svg.axis`, rendering in SVG. It loads station positions and stop times from a TSV file, filtering train types and clipping paths to show the full schedule.

AI-generated description

A recreation of E.J. Marey’s graphical train schedule. Stations are separated vertically in proportion to geography; thus, the slope of the line reflects the speed of the train: the steeper the line, the faster the train. This display also reveals when and where limited service trains (in orange) are passed by baby bullets (in red). This type of plot is sometimes called a “stringline chart”.

See also the earlier Protovis version by Vadim Ogievetsky, and another variation where color encodes speed.

gpl-3.0 Licensed

Similar vizzes