Plotlay Open the app →

Showcase · Funnels in Analysis · Ship tracking (AIS), MarineCadastre.gov

The queue off Los Angeles and Long Beach

In September 2021 container ships queued off San Pedro Bay for days before they could berth. From the ship tracking signals (AIS) we found the 151 cargo ships and tankers that slowed off the coast between 1 and 15 September and followed each to the harbour: 51 waited more than a week, and the longest waited 20 days. Here each ship is a bar on a timeline under the map. Its thread, coloured by the days it waited, rises into a chart of the ships waiting off the coast, counting from the moment the ship slowed until it got into the harbour, then runs on along the way in. The queue grew all fortnight: 54 ships at once at its highest, 53 still waiting as the last one arrived.

Plotlay’s funnel chart over a map of Los Angeles and Long Beach: a timeline of coloured bars from 1 to 15 September 2021 along the foot, each bar’s thread rising into a card over the open sea titled Ships waiting off the coast, an area climbing from 1 to 16 September to a dashed line marked 54 at most; from the card’s side the threads run on as one rope east along the way in, north through Queens Gate, 530 m wide, to a Long Beach berth. Headline: 54 ships at once.
The funnel as Plotlay exports it, over Plotlay’s Paper base map. The bars and the threads are the 140 ships with a length on record; the bundle is schematic, the coast and the way in are to scale.
The ships arriving as their dates pass: frames drawn by Plotlay’s own Video export (the date large, a red line on the timeline), each thread drawn on as it travels and the chart of the queue climbing as each one lands, each beat’s words set as the picture’s own title, joined into a video outside the app with the ring chart, the app and the end card.
51 of 151ships waited more than a week before they entered the harbour
20 daysthe longest wait, a cargo ship that slowed off the coast on 11 September
2.65 daysthe median wait; one ship in ten waited 14.2 days or more
35came straight in with no wait (30 cargo ships, 5 tankers)

How the picture reads

  1. A bar for each ship. Along the foot, under the map, a bar on the day the ship first slowed under 3 knots off the coast, as tall as the ship is long (its length overall from AIS, in metres) and coloured by the days it waited.
  2. The queue, ship by ship. Before the way in, each thread lands in a chart of the ships waiting off the coast, at the moment its ship first slowed, and that ship counts in it until it entered the harbour. So the chart climbs as ships arrive and falls as they get in: it rose all fortnight, to 54 at once at its highest, marked by the dashed line. The chart sits in open sea beside where the way in starts, and the threads leave its side as one bundle.
  3. One rope along the way in. From the chart the threads run on as one rope, which follows the median track of the ships for its last 50 km, from the sea south-west of Palos Verdes, past the waiting area and through Queens Gate to a Long Beach berth. The timeline sits below the map because the ships come in from the sea: Plotlay puts it on the side the route starts from and keeps the lines off the land. In the rope the 140 ships with a length run together as 140 thin threads, each a hairline a little wider for a longer ship.

The coast, the places and the way in are drawn to scale on the map. The bundle is schematic: a line’s place in it shows its order, not where the ship went. The picture says so in its legend.

A ring chart titled Days each ship waited: 151 dots on rings every 2 days, a crowd of dark dots near the middle for short waits and a few yellow dots on the outer rings for waits of 16 to 20 days.
The same table as a ring chart: a dot for each of the 151 ships at its wait, rings every 2 days, each ring in the order the ships arrived.
The funnel at the square size for a phone: the chart of ships waiting, the rope and Queens Gate over the map, the timeline under it, the headline and colour key in a strip at the foot.
The square size for a phone or a post: the headline and the key move to a strip under the timeline, and the chart sits in the open sea to the left.

Make one in Plotlay

  1. Paste the table. Analysis › Add a table: paste from a spreadsheet or open a CSV. Here, one row per ship: when it first slowed, when it entered the harbour, days waiting, length, type and gate.
  2. Draw the way in. Draw a line on the map with the Line tool, or pick a line already in the project or a data layer. Here, the median track of the ships, from AIS.
  3. Make a funnel. Make a chart, then the Funnel chip: the date column, the width, the colour, the route, and where it opens (a slider along the route, or a click on the map). The timeline goes on the side the route starts from, with its lines kept off the land; Timeline sits chooses above or below. Add callouts, a ring chart and a locator. A chart on the way: a histogram, columns by period or the level over time (how many are in at once, with how long each stays or the date it left), each record’s thread building it, placed on the map for the wide and the square sizes.
  4. Take it with you. PNG at 2x or 4x, SVG with its fonts inside, the records as CSV with their colours, and a video of the lines arriving as their dates pass, wide or square. Each goes in Documents produced.
Plotlay's Analysis page: the map of Los Angeles on the left with the way in drawn as a dashed line, the list of tables and charts, and the funnel chart with its type chips and download buttons.
The funnel in Analysis, beside the map. Download as PNG, SVG, records or video.
The funnel’s controls: the date column, line width, colour, names, the route picked from the project’s lines with a Draw button, a slider for where it opens, a chart on the way with where it sits, and ticks for the ring chart, locator, legend and scale bar.
The controls: columns, the route, where it opens and what goes on it.
The funnel on a phone, 390 px wide, in Analysis.
On a phone: the funnel in Analysis.
The funnel's controls on a phone.
The controls on a phone.

For AI agents

Through Plotlay’s connector an agent can make the same picture: funnel_chart takes a table, its date, size and colour columns, a route (a drawn line, a data layer’s line or coordinates), where it opens and where the timeline sits, and answers the count, the median and the picture; make_chart makes ring charts, and export_chart gives PNG, SVG, the records as CSV or one moment in time. See AI agents.

Read it carefully

Sources and licences

On GitHub: the 151 ships as CSV, one row each with its wait, length, gate and where it waited (ready for Power BI, Python or a spreadsheet; the latitude and longitude columns go straight into a map visual), the way in and the gates as GeoJSON, the records as the funnel drew them, the pictures and the method with its checks and caveats.

Ship positions: Nationwide Automatic Identification System 2021, daily files for 29 August to 12 October 2021, from the U.S. Coast Guard Navigation Center, the Bureau of Ocean Energy Management and the NOAA Office for Coastal Management (MarineCadastre.gov; metadata, InPort item 65082). A U.S. federal government product; the record lists no access constraints and gives its use as coastal and ocean planning. Ship names, IMO numbers and call signs were dropped, and the published ships are numbered V001 to V151.

Queens Gate and Angels Gate widths, and the breakwater line: © OpenStreetMap contributors, ODbL 1.0.

Base map: Plotlay’s Paper map from © OpenStreetMap contributors (ODbL) and Protomaps.

The average for container ships at the time is the Port of Los Angeles figure as reported by Bloomberg on 17 September 2021.

This is independent work using open data, not endorsed by NOAA, BOEM, the U.S. Coast Guard or the ports of Los Angeles and Long Beach.