Skip to content

Filter Scored Lables

The "filterScoredLables" transform fits prioritized labels into the available space, and dynamically reflows the data when the scale domain is adjusted (i.e., zoomed).

For an usage example, check the Annotation Tracks notebook.

Parameters

channel

Type: string

Default: "x"

lane

Type: string (field name)

An optional field representing element's lane, e.g., if transcripts are shown using a piled up layout.

padding

Type: number

Padding (in pixels) around the element.

Default: 0

pos Required

Type: string (field name)

The field representing element's position on the domain.

score Required

Type: string (field name)

The field representing the score used for prioritization.

width Required

Type: string (field name)

The field representing element's width in pixels