Skip to content

Function: linkY()

ts
function linkY(plots): () => void;

Defined in: plot.ts:2847

Link the primary y-axis of several plots, the counterpart of linkX. Use it for a grid of panels that share a units axis (the same metric across cohorts), where a shared y is what makes the panels comparable at a glance.

Parameters

ParameterType
plotsPlot[]

Returns

a function that unlinks them again.

() => void

MIT licensed. WebGL2 required.