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.

How the picture reads
- 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.
- 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.
- 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.


Make one in Plotlay
- 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.
- 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.
- 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.
- 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.




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
- A wait is the time from a ship’s first fix under 3 knots outside the breakwater to its crossing into the harbour. Drifting areas count, and a ship that slowed for another reason counts too.
- AIS here comes from receivers on shore, so ships waiting far out can drop out of the data. A gap of over 12 hours ends a waiting run, which can make a wait look shorter.
- 16 ships anchored inside the breakwater before they berthed: for them the wait ends when they left that anchorage, not at the gate.
- 11 ships have no length in the data. They are in the counts and the ring chart (151) but not in the bars and the rope (140), which is why the picture’s median is 2.8 days and the table’s 2.65.
- AIS does not tell container ships from other cargo ships. Cargo ships of 250 m or more, as a stand-in, waited 7.98 days on average; the Port of Los Angeles reported an average of 8.7 days for container ships at the time.
- Only ships that first slowed between 1 and 15 September are counted, so every one had at least 27 days in the data to reach a berth. 6 ships still waiting outside on 12 October are left out.
- The way in is the median of many tracks: no single ship sailed it.
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.
Make a funnel of your own
Plotlay is free to start: every tool, three cloud projects.
AnalysisPaste a table, make a chart, put it on the map