Profile chart

CTD profiles on one depth axis: in panels, a parameter each, or overlaid like the instrument software. Hover to read every parameter at a depth.

Playground

A real cast: 20 October 2026, one station on the southern outer coast, a reading every 2 seconds to 557 dbar. The key toggles parameters; Alt-click shows one alone; in overlay, hovering a key item shows its scale.

Cast
Layout
Medium

onhover: null

<ProfileChart
	parameters={[
		{ key: 'salinity', label: 'Salinity', short: 'Sal.', unit: 'PSU', digits: 2 },
		{ key: 'temperature', label: 'Temperature', short: 'Temp', unit: '°C', digits: 3 },
	]}
	casts={[{ id: 'down', label: 'Downcast', rows: down }]}
	depth="pressure"
	depthUnit="dbar"
	layout="panels"
	onhover={(depth) => (highlighted = depth)}
/>

One parameter, several missions

The same station's downcasts from February to October, a colour each. At 400 dbar the oxygen is highest in May, about 9.5 mg/l, and falls each month to about 7.5 in October; February's is the lowest of all.

Parameter
<ProfileChart
	parameters={[{ key: 'oxygen', label: 'Oxygen', unit: 'mg/l', digits: 2 }]}
	casts={missions.map((m) => ({ id: m.id, label: m.date, rows: m.downcast }))}
	depth="pressure"
	depthUnit="dbar"
/>

Rules

  • Show one direction, the downcast, unless the two are being compared. The upcast passes through water the probe just stirred up.
  • Panels by default: each parameter on its own scale, side by side, a layer reading straight across. Overlay when the shapes matter more than the values, as the instrument software shows a cast.
  • Depth runs down from the surface, on one scale for every panel. A raw cast is in pressure (dbar); depth is a conversion, and the axis says which.
  • The line follows the readings in the order they were taken. Nothing is smoothed or binned by the chart; that is a choice made above it and named in the label.
  • A parameter keeps its colour in every chart. One parameter over several missions switches to a colour per mission, with a key.
  • In print every scale is named and drawn: overlay stacks them above the plot, and casts get a key.